File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,15 @@ http {
231231 }
232232 }
233233
234+ location ^~ /fonts/ {
235+ include snippets/security-headers.conf;
236+ add_header Cross-Origin-Resource-Policy "same-origin" always;
237+ add_header Cache-Control "public, max-age=31536000, immutable" ;
238+ gzip_static off;
239+ brotli_static off;
240+ }
241+
242+
234243 location ~ "\. webmanifest$" {
235244 include snippets/security-headers.conf;
236245 add_header Cross-Origin-Resource-Policy "same-origin" always;
@@ -250,14 +259,6 @@ http {
250259 add_header Cache-Control "public, max-age=31536000" ;
251260 }
252261
253- location ~ "\. woff2$" {
254- include snippets/security-headers.conf;
255- add_header Cross-Origin-Resource-Policy "same-origin" always;
256- add_header Cache-Control "public, max-age=31536000, immutable" ;
257- gzip_static off;
258- brotli_static off;
259- }
260-
261262 location ~ "\. png$" {
262263 include snippets/security-headers.conf;
263264 # avoid breaking image hotlinking such as https://github.com/TryGhost/Ghost/issues/12880
You can’t perform that action at this time.
0 commit comments