mirror of https://gitlab.com/curben/blog
Add content-type header
so browser knows whether it's js or css
This commit is contained in:
parent
60de0c28c4
commit
d15c2d2c7b
|
@ -13,16 +13,19 @@
|
||||||
for = "/js/typing.js.br"
|
for = "/js/typing.js.br"
|
||||||
[headers.values]
|
[headers.values]
|
||||||
Content-Encoding = "br"
|
Content-Encoding = "br"
|
||||||
|
Content-Type = "application/javascript; charset=utf-8"
|
||||||
|
|
||||||
[[headers]]
|
[[headers]]
|
||||||
for = "/js/sri-fallback.min.js.br"
|
for = "/js/sri-fallback.min.js.br"
|
||||||
[headers.values]
|
[headers.values]
|
||||||
Content-Encoding = "br"
|
Content-Encoding = "br"
|
||||||
|
Content-Type = "application/javascript; charset=utf-8"
|
||||||
|
|
||||||
[[headers]]
|
[[headers]]
|
||||||
for = "/css/typing.css.br"
|
for = "/css/typing.css.br"
|
||||||
[headers.values]
|
[headers.values]
|
||||||
Content-Encoding = "br"
|
Content-Encoding = "br"
|
||||||
|
Content-Type = "text/css; charset=utf-8"
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/js/typing.js"
|
from = "/js/typing.js"
|
||||||
|
@ -41,4 +44,3 @@
|
||||||
to = "/css/typing.css.br"
|
to = "/css/typing.css.br"
|
||||||
status = 200
|
status = 200
|
||||||
force = true
|
force = true
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,12 @@
|
||||||
|
|
||||||
/js/typing.js.br
|
/js/typing.js.br
|
||||||
Content-Encoding: br
|
Content-Encoding: br
|
||||||
|
Content-Type: application/javascript; charset=utf-8
|
||||||
|
|
||||||
/js/sr-fallback.min.js.br
|
/js/sr-fallback.min.js.br
|
||||||
Content-Encoding: br
|
Content-Encoding: br
|
||||||
|
Content-Type: application/javascript; charset=utf-8
|
||||||
|
|
||||||
/css/typing.css.br
|
/css/typing.css.br
|
||||||
Content-Encoding: br
|
Content-Encoding: br
|
||||||
|
Content-Type: text/css; charset=utf-8
|
||||||
|
|
Loading…
Reference in New Issue