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"
|
||||
[headers.values]
|
||||
Content-Encoding = "br"
|
||||
Content-Type = "application/javascript; charset=utf-8"
|
||||
|
||||
[[headers]]
|
||||
for = "/js/sri-fallback.min.js.br"
|
||||
[headers.values]
|
||||
Content-Encoding = "br"
|
||||
Content-Type = "application/javascript; charset=utf-8"
|
||||
|
||||
[[headers]]
|
||||
for = "/css/typing.css.br"
|
||||
[headers.values]
|
||||
Content-Encoding = "br"
|
||||
Content-Type = "text/css; charset=utf-8"
|
||||
|
||||
[[redirects]]
|
||||
from = "/js/typing.js"
|
||||
|
@ -41,4 +44,3 @@
|
|||
to = "/css/typing.css.br"
|
||||
status = 200
|
||||
force = true
|
||||
|
||||
|
|
|
@ -5,10 +5,12 @@
|
|||
|
||||
/js/typing.js.br
|
||||
Content-Encoding: br
|
||||
Content-Type: application/javascript; charset=utf-8
|
||||
|
||||
/js/sr-fallback.min.js.br
|
||||
Content-Encoding: br
|
||||
Content-Type: application/javascript; charset=utf-8
|
||||
|
||||
/css/typing.css.br
|
||||
Content-Encoding: br
|
||||
|
||||
Content-Type: text/css; charset=utf-8
|
||||
|
|
Loading…
Reference in New Issue