ans-group / docs.ukfast.co.uk

ANS Documentation Repository
https://www.ans.co.uk/docs
10 stars 89 forks source link

Cache busting #951

Open rbibby opened 2 years ago

rbibby commented 2 years ago

What is the feature?

Add GET params to the stylesheets / Javascript to help with cache busting

What benefits will this change bring?

Changes to stylesheets / JS will show without needing a hard refresh

Additional context

I'm not sure how it would work with this project but in Laravel there's a mix manifest file which gives the hash of each asset. This is then appended to the file name as GET param so when the file contents change the hash changes. A function is used to load assets in the link tags using the mix manifest file to get the hash

https://laravel.com/docs/9.x/mix#versioning-and-cache-busting

miff2000 commented 2 years ago

I wonder if they can't support it in Sphinx due to this bug / feature?