zenthoef
13 Apr 2010, 11:10 PM
At the suggestion of Google Page Speed I recently enabled broswer chaching for my site using the following general htaccess rule:
Code:
# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0
# Set up caching on media files for 1 year (forever?)
<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|swf|js|png)$">
ExpiresDefault A29030400
Header append Cache-Control "public"
</FilesMatch>
Of course, I used shorter times for other files, but that is the general idea. However, I'm starting to be concerned that this kind of thing is starting to cause problems with people who use IE and visit my site. I'm not sure if its actually causing problems, but I am wondering if anyone has had experience with this kind of thing causing browser related problems. For example, can this cause browsers to load the page slower?
Also, I want to turn this off so I can see if it is the source of the problem I am trying to solve. Does anyone know how to turn this off? Do I just delete it from the htaccess file or do I need a special command?
Thanks!
Code:
# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0
# Set up caching on media files for 1 year (forever?)
<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|swf|js|png)$">
ExpiresDefault A29030400
Header append Cache-Control "public"
</FilesMatch>
Of course, I used shorter times for other files, but that is the general idea. However, I'm starting to be concerned that this kind of thing is starting to cause problems with people who use IE and visit my site. I'm not sure if its actually causing problems, but I am wondering if anyone has had experience with this kind of thing causing browser related problems. For example, can this cause browsers to load the page slower?
Also, I want to turn this off so I can see if it is the source of the problem I am trying to solve. Does anyone know how to turn this off? Do I just delete it from the htaccess file or do I need a special command?
Thanks!