Skip to content

Instantly share code, notes, and snippets.

@Sharifur
Created September 29, 2022 05:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sharifur/a0c387f5b4ed227b308c1437c56490be to your computer and use it in GitHub Desktop.
Save Sharifur/a0c387f5b4ed227b308c1437c56490be to your computer and use it in GitHub Desktop.
code for clear cache using htaccess
#Turns off the expires headers for Apache
<IfModule mod_expires.c>
ExpiresActive Off
</IfModule>
# Disable Caching
<IfModule mod_headers.c>
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires 0
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment