mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-31 20:51:30 -04:00
HTTP Cache-Control immutable (#7552)
Start using `Cache-Control: immutable` for some resources served with a timestamp. https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control#immutable The `<If>` directive requires Apache 2.4+
This commit is contained in:
committed by
GitHub
parent
3f187395ea
commit
91d32acfdc
@@ -39,6 +39,11 @@ AddDefaultCharset UTF-8
|
||||
<IfModule mod_headers.c>
|
||||
<FilesMatch "\.(css|gif|html|ico|js|png|svg|woff|woff2)$">
|
||||
Header merge Cache-Control "public"
|
||||
# If you run an old Apache 2.2-, comment out the following <If> section
|
||||
<If "%{QUERY_STRING} =~ /^[0-9]+$/">
|
||||
# For requests like `frss.css?1746304092`
|
||||
Header merge Cache-Control "immutable"
|
||||
</If>
|
||||
</FilesMatch>
|
||||
Header edit Set-Cookie ^(.*)$ "$1; SameSite=Lax"
|
||||
</IfModule>
|
||||
|
||||
Reference in New Issue
Block a user