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
{{ message }}
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.
Also need to implement cache-busting for all static files. Already doing the CSS file itself via built-in Tag Helper, and JS is inlined, so that just leaves the MS logo file (SVG or PNG via <image> tag, might need a new Tag Helper) and the background images referenced by the CSS file. That will likely require adding some CSS processing to my gulp setup to generate cache-busting strings in the minified CSS file. These npm modules look like a good start: https://www.npmjs.com/package/postcss & https://www.npmjs.com/package/postcss-cachebuster
The text was updated successfully, but these errors were encountered:
Hi @DamianEdwards,
I've worked on a solution for this issue.
Since I'm new to this project, I would like to share all changes to understand it they fits or not, before a PR:
I have a CDN endpoint set up at https://liveaspnetcdn.azureedge.net. Need to update the app to actually use it.
Having the CDN URL flow into the app would be nice to do centrally via some Tag Helpers perhaps.
Will need to set cache headers on static files including max-age to ensure the CDN caches them. See https://docs.microsoft.com/en-us/azure/app-service-web/cdn-websites-with-cdn?toc=%2fazure%2fcdn%2ftoc.json#configure-caching-options-for-static-files-in-your-azure-web-app
Also need to implement cache-busting for all static files. Already doing the CSS file itself via built-in Tag Helper, and JS is inlined, so that just leaves the MS logo file (SVG or PNG via
<image>
tag, might need a new Tag Helper) and the background images referenced by the CSS file. That will likely require adding some CSS processing to my gulp setup to generate cache-busting strings in the minified CSS file. These npm modules look like a good start: https://www.npmjs.com/package/postcss & https://www.npmjs.com/package/postcss-cachebusterThe text was updated successfully, but these errors were encountered: