Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache busting #951

Open
rbibby opened this issue Feb 23, 2022 · 1 comment
Open

Cache busting #951

rbibby opened this issue Feb 23, 2022 · 1 comment

Comments

@rbibby
Copy link
Contributor

rbibby commented Feb 23, 2022

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants