Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome (32) does not cache all-in-one files. #363

Closed
lewisgoddard opened this issue Feb 16, 2014 · 2 comments
Closed

Chrome (32) does not cache all-in-one files. #363

lewisgoddard opened this issue Feb 16, 2014 · 2 comments

Comments

@lewisgoddard
Copy link
Contributor

This seems to be an issue with chrome, which is setting the Cache-Control to max-age=0 and ignoring the response. I'm not entirely sure how you would go about fixing this, maybe by appending script.js to the end of the URLs so it expects JavaScript (it seems unsure about what to expect).

Request

Request URL: http://cdn.jsdelivr.net/g/modernizr,selectivizr,jquery,jquery.equalize
Request Method: GET
Status Code: 200 OK

Request Headers

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-GB,en;q=0.8,en-US;q=0.6
Cache-Control: max-age=0
Connection: keep-alive
Host: cdn.jsdelivr.net
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36

Response Headers

Access-Control-Allow-Origin: *
Cache-Control: public, max-age=315360
Connection: keep-alive
Content-Encoding: gzip
Content-Type: application/javascript
Date: Sun, 16 Feb 2014 13:23:29 GMT
Server: nginx
Transfer-Encoding: chunked
Vary: Accept-Encoding
X-Age: 2199
X-Cache: HIT
X-Cache: HIT
X-Edge-IP: 185.2.138.117
X-Edge-Location: London, GB
@jimaek
Copy link
Member

jimaek commented Feb 16, 2014

@lewisgoddard
Copy link
Contributor Author

Okay, so apparently this only happens because I am refreshing. I had no idea that effectively bypassed the cache, it seems like an odd move. As I said, I assumed it was something to do with type checking, but it does seem fine when loaded through a link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants