Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

CSS doesn't update

I’m using GitHub to host my site it worked normally for a while but after a while my browser stopped updating the CSS and JS files HTML files update normally. For others it works normally but not for me.

I have tried: CTRL+F5, CTRL+SHIFT+R, clearing cache.

Here is the source: https://github.com/Jakooob14/jakooob-site

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

The site: https://jakooob.ml

>Solution :

It’s cool that sites like GitHub offer free hosting, but I’m not always clear how they manage caching of files. One thing you can do is add a query string to the URL, which will force the browser to fetch a fresh copy:

<link rel="stylesheet" href="style-index.css?v=1" />

The ?v=1 above should do the trick.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading