Neocities.org

petrapixel

petrapixel.neocities.org

42,181 views
83 followers
52 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 2 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 2 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 2 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 1 week ago
CreatedNov 9, 2021
Site Traffic Stats

Tags

personal art resources programming music