开发者

Why apache does not update media files when I update tham in my FileSystem?

Why Apache does not update media files when I update them in my file system? (I use 开发者_JAVA技巧xampp on Windows to manage Apache) So when I update my php files I see changes immediately byt when I update media files like .swf's it does note update them when I call them. Why, and how to solve such problem?


This seem to be a issue of the browser cache and not of Apache web server.
See php header function. There is a section about caching. You also could use a .htaccess file for cache controll.


They probably are in the browser's cache. Clean the browser's cache, or reload using SHIFT+F5 (it usually works), or serve the media files through a PHP file which instructs the files not to be cached.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜