#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: |
Description
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
comment:2 Changed 12 years ago by
Component: | unfiled → web |
---|---|
Priority: | → high |
Status: | new → open |
comment:3 Changed 12 years ago by
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
Resolution: | → fixed |
---|---|
Status: | open → closed |
Closing as the fix for this has now been verified as having been completed.
Correction: The max-age for "latest-version" versions on Google's CDN is 3600 seconds - that would be 1 hour.