Neocities.org

petrapixel

petrapixel.neocities.org

190,578 views
261 followers
355 updates
0 tips
Does anybody know a trick to make sure everyone always sees the lastest version of my stylesheet? It seems like the browser loooves caching it >.< Must be a common problem here on neocities probably?
2 likes
littlecloud 8 months ago

I think it's a neocities thing, that happens a lot with my site; when I open in another browser or in my phone the site is updated, but if I use the same browser it never updates, no matter how many times I refresh the page :(

1 like
jeith 8 months ago

if you have your css in a separate file, you can add "?v=1" to the end of the css link href in the html file, and increment the number each update to trick the browser into not caching the previous css whenever you make updates - here's an example: https://codepen.io/Tofurky/pen/QWPyQYM lemme know if this makes sense or not :P

2 likes
petrapixel 8 months ago

thank you guys! i actually know about the ?=... solution, i just hoped there's a better one haha.

1 like

Website Stats

Last updated 5 days ago
CreatedNov 9, 2021
Site Traffic Stats

Tags

personal art resources programming coding