diff options
-rw-r--r-- | server/ui/controller/static.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/ui/controller/static.go b/server/ui/controller/static.go index fba408c..ae46815 100644 --- a/server/ui/controller/static.go +++ b/server/ui/controller/static.go @@ -24,12 +24,12 @@ func (c *Controller) Stylesheet(ctx *core.Context, request *core.Request, respon etag += static.StylesheetsChecksums[stylesheet] } - response.Cache("text/css", etag, []byte(body), 48*time.Hour) + response.Cache("text/css; charset=utf-8", etag, []byte(body), 48*time.Hour) } // Javascript renders application client side code. func (c *Controller) Javascript(ctx *core.Context, request *core.Request, response *core.Response) { - response.Cache("text/javascript", static.JavascriptChecksums["app"], []byte(static.Javascript["app"]), 48*time.Hour) + response.Cache("text/javascript; charset=utf-8", static.JavascriptChecksums["app"], []byte(static.Javascript["app"]), 48*time.Hour) } // Favicon renders the application favicon. |