Bug Tracker

Opened 13 years ago

Closed 12 years ago

Last modified 11 years ago

#7065 closed enhancement (fixed)

jquery.com referencing google CDN's 1.4 (e.g. latest version) instead of 1.4.2 (current version).

Reported by: musicisair Owned by:
Priority: high Milestone:
Component: web Version:
Keywords: jquery.com google cnd Cc:
Blocked by: Blocking:


An article about using Google CDN's for hosting jQuery mentioned something unfortunate about jquery.com's particular use of the CDN itself.

Read the "Specificity is crucial" section of http://encosia.com/2010/09/15/6953-reasons-why-i-still-let-google-host-jquery-for-me/.

The max-age for "latest-version" versions on Google's CDN is 3600 seconds - that would be 1 minute. Specifying the version explicitly (1.4.2 instead of 1.4) means it would be cached for 31536000 seconds...which is one year (except, of course, on a leap year). While we do love jQuery very much...we don't really want to download it every time we want visit.

Please change "http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" to "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js".

I couldn't find anywhere to file a ticket for jQuery.com, so please forgive me if this is the wrong place.

Change History (4)

comment:1 Changed 13 years ago by musicisair

Correction: The max-age for "latest-version" versions on Google's CDN is 3600 seconds - that would be 1 hour.

comment:2 Changed 12 years ago by snover

Component: unfiledweb
Priority: high
Status: newopen

comment:3 Changed 12 years ago by mikehostetler

I've updated jquery.com homepage to point at the correct version of jQuery, hosted on jQuery's CDN.

comment:4 Changed 12 years ago by addyosmani

Resolution: fixed
Status: openclosed

Closing as the fix for this has now been verified as having been completed.

Version 0, edited 12 years ago by addyosmani (next)
Note: See TracTickets for help on using tickets.