CORS- and sha-issues on cloudflare pages with auto minify turned on #1041
-
I just set up my site on cloudflare pages, and started to have some issues with the hash for css-files being wrong on my main site (worked fine on dev-address). {{ with resources.Get "assets/css/stylesheet.css" }}
{{ $CSS := resources.Get "assets/css/stylesheet.css" }}
{{ $CSS := $CSS | resources.Minify }}
{{ $hash_CSS := $CSS | resources.Fingerprint "sha256" }}
<link rel="preload stylesheet" href="{{ $hash_CSS.RelPermalink }}" integrity="{{ $hash_CSS.Data.Integrity }}" as="style" type="text/css" crossorigin="anonymous">
{{ end }} I'm not a dev, so not sure how to do this, and i wonder if it's something that could be implemented in the code upstream. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
All assets css and js are already minified that is compressed. It's okay to disable asset minification on cloudflare. Won't impact anything. |
Beta Was this translation helpful? Give feedback.
-
okay. great! |
Beta Was this translation helpful? Give feedback.
All assets css and js are already minified that is compressed. It's okay to disable asset minification on cloudflare. Won't impact anything.