Re: Random Number Appended to Images,JS and CSS files

Ezra Zygmuntowicz
Sun, 17 Sep 2006 02:06:21 -0000

On Sep 16, 2006, at 6:54 PM, John Kopanas wrote:

>
> Thanks Rimantas... I appreciate it.  Stilld does not explain why
> though.  I am a big why type of guy.  Anyone know why?

	The reason for the timestamps on assets is to deal with browser
caching. Browsers tend to cache css and js for a while when they have
the same name and url. This just forces the browser to reload the css
or js or image when you make changes to it. This way your users don''t
get stale assets that don''t match the html like they should. Its
especially helpful in dev mode when often you are making frequent
changes to the css and js and you want them to reload in the browser
without the need for you to flush your browsers cache.

-Ezra