Comments (2)
Integrity hashes for subresource integrity are computed based on the uncompressed assets by browsers, so the content encoding won't be an issue (requiring the integrity hash to match the compressed output would have killed any on-demand compression, which is how most compression is deployed).
My guess is that the issue is actually caused by the usage of a Cloudflare feature modifying the content of the asset dynamically, like their Auto Minify feature.
from webpack-encore-bundle.
@stof As someone who had issues with integrity hashes before (see symfony/webpack-encore#1164), I now get the exact same messages in my chrome console as @oleg-andreyev . Having disabled the "Auto Minify" feature for JS/CSS, disabled Rocket Loader, and everything else remotely related to asset manipulation, I'm almost certain this cannot be so easily blamed on Cloudflare now.
I've performed curl https://example.com/build/asset.css 2>/dev/null| openssl dgst -sha384 -binary | openssl base64 -A
and cat ./build/asset.css 2>/dev/null| openssl dgst -sha384 -binary | openssl base64 -A
, both returning the same hash as displayed by integrity
attribute in the link tags.
I've done a quick search, and maybe w3c/preload#127 is somewhat related to this problem?
from webpack-encore-bundle.
Related Issues (20)
- "encore_entry_link_tags" & "encore_entry_script_tags" ignore the basePath (X-Forwarded-Prefix) HOT 2
- [RFC] Allow stimulus_*() Twig functions to return arrays instead of strings HOT 3
- Docs seem to be missing something ? HOT 1
- missing crossorigin tag (#56 needs more work ?) HOT 10
- Custom rule error: ModuleBuildError involving postcss-loader, which I'm not using? HOT 1
- Unable to 'build' HOT 3
- Webpack Encore context directory issue
- Yarn warning when updating webpack-cli to v5 HOT 1
- Missing entrypoints.json when installing from scratch on Symfony HOT 1
- import js & css files from TwigExtension with stimulus controllers HOT 5
- Unknown "encore_entry_link_tags" function HOT 4
- Add Twig function and filter for Stimulus Outlets integration HOT 2
- Move Stimulus helpers to UX repository HOT 1
- Unable to preload links: feature not supported HOT 4
- 2.0 not usable with symfony 5.4 (twig-bundle conflict) HOT 1
- recipe update not working HOT 3
- Error when reusing Symfony web server SSL certificate HOT 1
- assets base_path parameter not considered by encore_entry_link_tags and encore_entry_script_tags functions HOT 5
- TagRenderer EntrypointLookupCollectionInterface , encore_entry_script_tag issue HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webpack-encore-bundle.