3 ms·
And what if the resource in question is a dynamically generated minified thing? Do I have to dynamically generate it within the main html page to be able to fi
by btilly 10y ago
And what if the resource in question is a dynamically generated minified thing? Do I have to dynamically generate it within the main html page to be able to figure out the sha?
These are big complex workarounds for a problem that is easily solved at another layer.
- acdha 10y agoTypically these are shared resources and can be generated once and saved so your HTML page would simply be checking file metadata generated at the time the app was built. If it was truly custom, you could either do cached on-demand generation or find some other portion of the cache key which reliably changes on updates – e.g. I've seen people use things like Git commit ID + feature flags.