Ticket #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: | |
| Blocking: | Blocked by: |
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
comment:2 Changed 3 years ago by snover
- Priority set to high
- Status changed from new to open
- Component changed from unfiled to web
comment:3 Changed 3 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 3 years ago by addyosmani
- Status changed from open to closed
- Resolution set to fixed
Closing as a fix for this has now been verified as having been completed. Note: We are still debating whether local CDN referencing vs. Google's CDN usage warrant a further update to the site. If we opt not to use local CDN, I will confirm that via this ticket for historical reference.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

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