Skip to content

Instantly share code, notes, and snippets.

@munroebot
Created August 27, 2011 20:53
Show Gist options
  • Save munroebot/1175859 to your computer and use it in GitHub Desktop.
Save munroebot/1175859 to your computer and use it in GitHub Desktop.
Dear Jimmy
So the problem isn't that I can't put a cache buster
on like the css and js files inside the *.html, but
rather how do I bust the cache on a bookmarked page?
I can't attach epoch time because I didn't think you
could attach a javascript object like that?
BTW, do you use a templating engine / framework or
something when building your pages? It also seems
rather clunky to do something like this:
<link rel="stylesheet"
type="text/css"
href="css/main.css?"<script type="text/javascript">document.write(Date.time());</script> />
@jimmyjacobson
Copy link

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