mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
更新 nginx.common.conf
This commit is contained in:
@@ -15,6 +15,13 @@ location ~* \.(png|jpg|jpeg|gif|ico|svg)$ {
|
|||||||
add_header Cache-Control "public, immutable";
|
add_header Cache-Control "public, immutable";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# JS和CSS静态资源缓存
|
||||||
|
location ~* \.(js|css)$ {
|
||||||
|
expires 30d;
|
||||||
|
add_header Cache-Control "public";
|
||||||
|
add_header Vary Accept-Encoding;
|
||||||
|
}
|
||||||
|
|
||||||
# assets目录
|
# assets目录
|
||||||
location /assets {
|
location /assets {
|
||||||
expires 1y;
|
expires 1y;
|
||||||
|
|||||||
Reference in New Issue
Block a user