Last active
February 5, 2025 16:41
-
-
Save davidpede/94ece50f242a64ce4e1c308498fe4723 to your computer and use it in GitHub Desktop.
Disable caching 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
<IfModule mod_headers.c> | |
# Disable caching by sending no-cache headers | |
Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0" | |
Header set Pragma "no-cache" # Adds compatibility for older HTTP 1.0 caches | |
Header set Expires 0 | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment