deploy: enforce no-cache for index.html and version.js via publish-dir htaccess

This commit is contained in:
Jage9
2026-02-22 19:08:20 -05:00
parent c7e2a10652
commit 590e33d374
3 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
# Chat Grid publish-dir cache policy.
# Applied to /chgrid/.htaccess by deploy_client.sh.
<IfModule mod_headers.c>
<FilesMatch "^(index\.html|version\.js)$">
Header set Cache-Control "no-store, no-cache, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "0"
</FilesMatch>
</IfModule>