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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...