Skip to content

Commit 9ef1e35

Browse files
committed
update code
1 parent c299126 commit 9ef1e35

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

nginx.conf.sample

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,9 @@ location /media/ {
166166
}
167167

168168
location ~* \.(ico|jpg|jpeg|png|gif|svg|svgz|webp|avif|avifs|js|css|eot|ttf|otf|woff|woff2)$ {
169-
add_header Cache-Control "public, max-age=31536000, immutable";
169+
add_header Cache-Control "public";
170170
add_header X-Frame-Options "SAMEORIGIN";
171+
expires +1y;
171172
try_files $uri $uri/ /get.php$is_args$args;
172173
}
173174
location ~* \.(zip|gz|gzip|bz2|csv|xml)$ {

pub/static/.htaccess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ AddType application/xml xml
7575
<IfModule mod_headers.c>
7676

7777
<FilesMatch .*\.(ico|jpg|jpeg|png|gif|svg|webp|avif|avifs|js|css|eot|ttf|otf|woff|woff2|html|json|webmanifest)$>
78-
Header append Cache-Control public
78+
Header append Cache-Control "public, immutable"
7979
</FilesMatch>
8080

8181
<FilesMatch .*\.(zip|gz|gzip|bz2|csv|xml)$>

0 commit comments

Comments
 (0)