Created
September 29, 2022 05:45
-
-
Save Sharifur/a0c387f5b4ed227b308c1437c56490be to your computer and use it in GitHub Desktop.
code for clear cache using htaccess
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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