Skip to content

Commit 065de51

Browse files
committed
chore: disable html caching
1 parent 7b2595c commit 065de51

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

public/.htaccess

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ RewriteEngine On
55
# Cache control: short cache for HTML, long for hashed assets
66
# ------------------------------------
77
<IfModule mod_headers.c>
8-
# HTML: cache for 1 hour, revalidate after
8+
# HTML: no cache, always fetch fresh
99
<FilesMatch "\.html$">
10-
Header set Cache-Control "public, max-age=3600, must-revalidate"
10+
Header set Cache-Control "no-cache, no-store, must-revalidate"
11+
Header set Pragma "no-cache"
12+
Header set Expires "0"
1113
</FilesMatch>
1214

1315
# Hashed assets (JS, CSS, images): cache for 1 year

0 commit comments

Comments
 (0)