Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8177513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:31:44+00:00 2026-06-06T23:31:44+00:00

Question Why does content served from jQuery’s CDN lack far-future expire headers? (or, What

  • 0

Question

Why does content served from jQuery’s CDN lack far-future expire headers? (or, “What am I doing wrong here?”)

Background

I’m using jQuery and jQuery Mobile on a web project. To serve these scripts, I use jQuery’s CDN, per their directions. However, I’ve noticed that these resources are served without far-future expires headers, which prevents browsers from being able to cache them intelligently.

Although the jQuery servers will respond with 304 Not Modified, that’s not the same as an expire header the negates that request altogether. I realize the simple answer here is “because they don’t” however, I’m wondering why they don’t, and if there’s some way I can serve this content, ideally from a CDN, with far-future expires headers.

Thanks for your time.

Examples

jQuery CDN

http://code.jquery.com/jquery-1.6.4.min.js

Response:

HTTP/1.1 304 Not Modified
Date: Wed, 16 May 2012 00:05:27 GMT
ETag: "9e68e84-16615-6ad9bfc0+gzip"
Last-Modified: Mon, 12 Sep 2011 22:55:03 GMT
Server: ECS (dca/532A)
Vary: Accept-Encoding
X-Cache: HIT

Google CDN

https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js

Response:

HTTP/1.1 200 OK
age:134505
cache-control:public, max-age=31536000
content-encoding:gzip
content-length:32103
content-type:text/javascript; charset=UTF-8
date:Mon, 14 May 2012 10:45:15 GMT
expires:Tue, 14 May 2013 10:45:15 GMT
last-modified:Mon, 02 Apr 2012 18:24:28 GMT
server:sffe
status:200 OK
vary:Accept-Encoding
version:HTTP/1.1
x-content-type-options:nosniff
x-xss-protection:1; mode=block

Note the far-future expires date in expires:Tue, 14 May 2013 10:45:15 GMT

Solution

I’m using Microsoft’s CDN hosted version which features a 1 year expire date:

http://ajax.aspnetcdn.com/ajax/jquery.mobile/1.1.0/jquery.mobile-1.1.0.min.js

Full list of CDN hosted files.

@zuul explained below why some CDN hosted items have longer expire headers than others. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:31:45+00:00Added an answer on June 6, 2026 at 11:31 pm

    Microsoft also has a CDN wich is hosting the jquery mobile stuff:

    http://www.asp.net/ajaxLibrary/CDNjQueryMobile110.ashx

    Expire-Date is about 1 year in the future!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

An iOS app which consumes content from back end server. The content actually does
Question:- Does java client need to worry about multiple servers ? Meaning:- I have
[Question] Does anyone product release notes via an automated process? If so how. Especially
Question: Does anyone have an example of a filter as you type dropdown control
Question: Does anyone have a quick way for removing all the extra resources in
Simple question: does the Java memory/synchronization model guarantee atomic pointer writes? That is, if
The question does not refer to some Vim-mode in Emacs, but to Vim inside
(This question does not rely on a specific IoC framework, so the interfaces and
Drupal Question: Does anyone have a method of using Views and highlighting a selected/current
This question does pretty much what I want to accomplish, but my table is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.