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

Add version to css URLs to avoid browser cache #970

Closed
gemal opened this issue Dec 19, 2022 · 1 comment
Closed

Add version to css URLs to avoid browser cache #970

gemal opened this issue Dec 19, 2022 · 1 comment

Comments

@gemal
Copy link

gemal commented Dec 19, 2022

whenever the css for code coverage changes then the browser still has cache for the old file
A very easy way would be to include the version number in the URL of the css

So change:
<link href="{{path_to_root}}_css/bootstrap.min.css" rel="stylesheet" type="text/css">
to
<link href="{{path_to_root}}_css/bootstrap.min.css?v={{version}}" rel="stylesheet" type="text/css">

that should be done for all the css files

@gemal
Copy link
Author

gemal commented Dec 19, 2022

Do you accept pull requests?

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

No branches or pull requests

1 participant