fix: serve theme assets from the production host, keep images on the CDN
This commit is contained in:
1 parent
b5d0c484c0
commit
f10d784a5c
6 files changed
+59
-57
No files matched your search
@@ -139,6 +139,16 @@ AddType image/webp .webp
|
||||
|
||||
</IfModule>
|
||||
|
||||
# Webpack writes an 8-hex-character content hash into the filename of everything it emits, so
|
||||
# these URLs can never change meaning - a new build is a new URL. `immutable` stops browsers
|
||||
# revalidating them on reload, and overrides the per-type rules above, which would otherwise
|
||||
# expire the hashed fonts after a month.
|
||||
<IfModule mod_headers.c>
|
||||
<FilesMatch "\.[0-9a-f]{8}\.(js|css|woff2?|jpe?g|png|gif|svg|webp|avif)$">
|
||||
Header set Cache-Control "public, max-age=31536000, immutable"
|
||||
</FilesMatch>
|
||||
</IfModule>
|
||||
|
||||
### End: Browser caching of resource files ###
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user