hi,
I have a site with a flash object. IE7 keep caching the photos of the flash.
i tried clearstatcache() but it didn't help!
what to do?!
thanks.
hi,
I have a site with a flash object. IE7 keep caching the photos of the flash.
i tried clearstatcache() but it didn't help!
what to do?!
thanks.
clearstatcache() doesn't do anything to browsers or how files are cached.
You will need to send the correct headers to do this.
If you have control via .htaccess have a look here
http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html
I will check it out
thanks
2 questions:
1-will that clear the?:
<FilesMatch ".(html|htm|php)$">
Header set Cache-Control "max-age=0, private, proxy-revalidate"
</FilesMatch>
2-do I write this in the htaccess?:
-enable-module=expires
-enable-module=header
thanks!
In your case
<FilesMatch ".(php|cgi|pl|htm)$">
ExpiresDefault A0
Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
Header set Pragma "no-cache"
</FilesMatch>
change the file extensions to any you don't want cached.
(php|cgi|pl|htm)
are the file extensions in the the above example.
sorry but it didn't help
how do I delete temporary internet files via php
how do delete all of the user's Temporary Internet Files?
Do you want your script to clear a user's temporary folder ?! That is totally impossible !
The only possible thing is to send some headers to prevent the page from being cached (see www.php.net/header), or to ask the user himself to clear his folder !
Uhh.. what do you mean?
You can try to tell the browser not to cache the current page (probably with a Pragma header and whatnot).
As for other files... you don't honestly thing there's any way of causing a user's browser to start deleting files off their hard drive, do you?
Try clearing the cached data in IE7, tools->internet options somewhere
You cannot delete any of the users files, whether they're temporary or internet, or any other kind - for reasons which I hope should be obvious!
Mark