Hacker News new | ask | show | jobs
by andr 6394 days ago
Cool. An unrelated minor idea:

  *Note: Please clear your browser cache in order to see the changes*
To avoid having to ask your users to refresh just append a version number (either manual or your SVN revision number) to all JS and CSS files, like so:

<script src="/js/something.js?1234"></script>

You get caching just like before, but when you push new code everyone sees it right away.

1 comments

Good call. We were doing that before, but I completely forgot. Doh.