File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,15 @@ http {
231
231
}
232
232
}
233
233
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
+
234
243
location ~ "\.webmanifest$" {
235
244
include snippets/security-headers.conf;
236
245
add_header Cross-Origin-Resource-Policy "same-origin" always;
@@ -250,14 +259,6 @@ http {
250
259
add_header Cache-Control "public, max-age=31536000" ;
251
260
}
252
261
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
-
261
262
location ~ "\.png$" {
262
263
include snippets/security-headers.conf;
263
264
# 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