mirror of https://gitlab.com/curben/blog
Add redirect rule for js and css
set their content-encoding header as br (for brotli compression)
This commit is contained in:
parent
96ad70e1e1
commit
60de0c28c4
34
netlify.toml
34
netlify.toml
|
@ -8,3 +8,37 @@
|
||||||
X-Frame-Options = "DENY"
|
X-Frame-Options = "DENY"
|
||||||
X-XSS-Protection = "1; mode=block"
|
X-XSS-Protection = "1; mode=block"
|
||||||
X-Content-Type-Options = "nosniff"
|
X-Content-Type-Options = "nosniff"
|
||||||
|
|
||||||
|
[[headers]]
|
||||||
|
for = "/js/typing.js.br"
|
||||||
|
[headers.values]
|
||||||
|
Content-Encoding = "br"
|
||||||
|
|
||||||
|
[[headers]]
|
||||||
|
for = "/js/sri-fallback.min.js.br"
|
||||||
|
[headers.values]
|
||||||
|
Content-Encoding = "br"
|
||||||
|
|
||||||
|
[[headers]]
|
||||||
|
for = "/css/typing.css.br"
|
||||||
|
[headers.values]
|
||||||
|
Content-Encoding = "br"
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/js/typing.js"
|
||||||
|
to = "/js/typing.js.br"
|
||||||
|
status = 200
|
||||||
|
force = true
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/js/sri-fallback.min.js"
|
||||||
|
to = "/js/sri-fallback.min.js.br"
|
||||||
|
status = 200
|
||||||
|
force = true
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/css/typing.css"
|
||||||
|
to = "/css/typing.css.br"
|
||||||
|
status = 200
|
||||||
|
force = true
|
||||||
|
|
||||||
|
|
|
@ -3,3 +3,12 @@
|
||||||
X-XSS-Protection: 1; mode=block
|
X-XSS-Protection: 1; mode=block
|
||||||
X-Content-Type-Options: nosniff
|
X-Content-Type-Options: nosniff
|
||||||
|
|
||||||
|
/js/typing.js.br
|
||||||
|
Content-Encoding: br
|
||||||
|
|
||||||
|
/js/sr-fallback.min.js.br
|
||||||
|
Content-Encoding: br
|
||||||
|
|
||||||
|
/css/typing.css.br
|
||||||
|
Content-Encoding: br
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue