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

is the problem updating to a new version of the javascript stuff or something that happens everytime the user loads the page?

@munroebot
Copy link
Author

Changing the content in this *.html file:
https://github.com/munroebot/munroebot.github.com/blob/master/weblinks-builder.html

I guess I should remove anything remotely dynamic to external JS so I can cache bust easy?

@jimmyjacobson
Copy link

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