Welcome! Log In Create A New Profile

Advanced

Re: Kind of unrelated; But maybe someone knows.

December 22, 2010 07:52PM
On Wed, Dec 22, 2010 at 4:43 PM, David J. <david@styleflare.com> wrote:

> I was wondering why some sites have
>
> <script src="path/to/javascript.js?432532432"></script>
>
> What is the "?432532432" or whatever used for? Is it a versioning thing.
>
> I see it on many of the bigger sites.
>
> <link href="/css/layout.css?1291917579" media="all" rel="stylesheet">
>
> 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.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Kind of unrelated; But maybe someone knows.

David J. December 22, 2010 07:46PM

Re: Kind of unrelated; But maybe someone knows.

mike December 22, 2010 07:52PM

Re: Kind of unrelated; But maybe someone knows.

David J. December 22, 2010 08:00PM

Re: Kind of unrelated; But maybe someone knows.

Juan Fco. Giordana December 24, 2010 02:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 165
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready