Posted By

samwa on 03/22/11


javascript cache

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Javascript epoch time

 / Published in: JavaScript


returns the number of seconds since 1 jan 1970 This is useful for generating a number in a url to stop a page from caching

  1. var cacheBreak = Math.round(new Date().getTime()/1000.0);

Report this snippet  

You need to login to post a comment.