Results 1 to 2 of 2

Thread: Turn off Browser Caching in htaccess?

  1. #1
    Join Date
    Feb 2010
    Posts
    12

    Turn off Browser Caching in htaccess?

    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!

  2. #2
    Join Date
    Dec 2009
    Posts
    1,232
    I haven't messed with this before. I thought most browsers automatically cached info.

Similar Threads

  1. apache htaccess cheatsheet
    By apachedude in forum Web Hosting and Domain Names
    Replies: 0
    Last Post: 30 Mar 2007, 06:47 PM
  2. Dramatically Speed Up Sites with caching on Apache
    By apachedude in forum Web Hosting and Domain Names
    Replies: 0
    Last Post: 18 Jan 2007, 01:43 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •