You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I've been working with Blazor WebAssembly Stand Alone and noticed an inconsistency with the OverrideHtmlAssetPlaceholders feature and the #[.{fingerprint}] placeholder system.
✅ For JS Script, it works perfectly as well! The fingerprint is properly generated.
Is there a technical reason why fingerprinting is limited to scripts only? Since the compiler already processes #[.{fingerprint}] placeholders for JS files (both framework and custom ones), wouldn't it make sense for it to also check and process stylesheets in the same way?
Cache-busting is just as important for CSS as it is for JavaScript in production scenarios, and having a consistent approach across all asset types would be very beneficial.
Thank you for your insights!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I've been working with Blazor WebAssembly Stand Alone and noticed an inconsistency with the
OverrideHtmlAssetPlaceholdersfeature and the#[.{fingerprint}]placeholder system.✅ For JS Script, it works perfectly as well! The fingerprint is properly generated.
❌However, the same mechanism doesn't work for stylesheets:
Is there a technical reason why fingerprinting is limited to scripts only? Since the compiler already processes
#[.{fingerprint}]placeholders for JS files (both framework and custom ones), wouldn't it make sense for it to also check and process stylesheets in the same way?Cache-busting is just as important for CSS as it is for JavaScript in production scenarios, and having a consistent approach across all asset types would be very beneficial.
Thank you for your insights!
Beta Was this translation helpful? Give feedback.
All reactions