Jump to content

Recommended Posts

Posted

Browser caching .htaccess not working for me. Please help.

 

username: fdfrs97

domain: fdfrs.org

Posted

Here is an example of preventing caching of a file using .htaccess

<FilesMatch "dontcache\\.txt$">
  Header unset ETag
  Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
  Header set Pragma "no-cache"
  Header set Expires "Wed, 1 Jan 2000 00:00:00 UTC"
</FilesMatch>
  • Like 1
Posted

and you are using CloudFlare which will do caching

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...