Kind of unrelated; But maybe someone knows

I was wondering why some sites have

What is the “?432532432” or whatever used for? Is it a versioning thing.

I see it on many of the bigger sites.

Thanks for any info.

On Wed, Dec 22, 2010 at 4:43 PM, David J. [email protected] wrote:

Thanks for any info.
Forces the user’s browser to treat the same on the server as a
different one. Or, a lot of the time, CDNs - a technique known as
“cache busting”

It will force a browser and most CDNs to re-cache the file as a fresh
copy as it includes the query string as part of the key. Otherwise due
to Expires headers, CDNs and other caching behavior, clients wouldn’t
know that a new copy of a specific file might be fresh.

Thanks mike;

Would you happen to have any articles or information that goes deeper
into that?

I understand the concept clearly; Obviously on CSS or JS files are any
versioned content; You wouldnt want that data cached;

But I never saw the technique mentioned before; So I would like to
learn a bit more about it.

Thanks Again.

On 12/22/2010 09:58 PM, David J. wrote:

Would you happen to have any articles or information that goes deeper
into that?

Search “cache busting” on the net.

I understand the concept clearly; Obviously on CSS or JS files are any
versioned content; You wouldnt want that data cached;

You could see it basically as a reload mechanism. You modified the
site’s CSS/JS, and append some timestamp to the query string so the file
gets reloaded on the next page view, and cached by the browser (and
possibly the web server). This is to avoid that your visitors need to
reload the page contents to see the stuff you edited on those files.

The query string would remain the same until you modify these files
again.

But I never saw the technique mentioned before; So I would like to learn
a bit more about it.

It’s like uniqid() some of us use on captcha’s images, but made for last
a bit longer.

Regards