刘光辉
13 小时以前 0dfe84494048ce27ba8449831782128412d3eb13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Include this fragment in the server block that serves immutable plugin releases.
root <ONLYOFFICE_RELEASE_ROOT>;
 
location ~ ^/onlyoffice-plugins/[^/]+/eln-template-annotator/(?:config\.json|index\.html)$ {
  add_header Cache-Control "no-cache, must-revalidate" always;
  add_header X-Content-Type-Options "nosniff" always;
  try_files $uri =404;
}
 
location ~ ^/onlyoffice-plugins/[^/]+/eln-template-annotator/assets/.+-[A-Za-z0-9_-]+\.(?:js|css)$ {
  add_header Cache-Control "public, max-age=31536000, immutable" always;
  add_header X-Content-Type-Options "nosniff" always;
  try_files $uri =404;
}
 
location ~ ^/onlyoffice-plugins/[^/]+/eln-template-annotator/resources/icon(?:@2x)?\.png$ {
  add_header Cache-Control "public, max-age=604800" always;
  add_header X-Content-Type-Options "nosniff" always;
  try_files $uri =404;
}