Current time: 10-21-2019, 01:19 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Google jquery (No max-age or expires)
10-28-2011, 05:13 AM
Post: #1
Google jquery (No max-age or expires)
Hey all.

Why these results?
----------
FAILED - (No max-age or expires) - http://ajax.googleapis.com/ajax/libs/jqu...ery.min.js

FAILED - (No max-age or expires) - http://ajax.googleapis.com/ajax/libs/jqu...-ui.min.js

WARNING - (2.0 hours) - http://www.google-analytics.com/ga.js
----------

Are the results imporant and if so, what can be done about them?

Kembreg.
Find all posts by this user
Quote this message in a reply
11-02-2011, 06:35 AM
Post: #2
RE: Google jquery (No max-age or expires)
(10-28-2011 05:13 AM)Kembreg Wrote:  Hey all.

Why these results?
----------
FAILED - (No max-age or expires) - http://ajax.googleapis.com/ajax/libs/jqu...ery.min.js

FAILED - (No max-age or expires) - http://ajax.googleapis.com/ajax/libs/jqu...-ui.min.js

WARNING - (2.0 hours) - http://www.google-analytics.com/ga.js
----------

Are the results imporant and if so, what can be done about them?

Kembreg.

Not important, more like a guidline. If you really want to be optimized for those files, copy them to your server and set an expire accordingly. These are frameworks that will never change. (meaning that version 1.6.4 will never change) and if it does it'll be 1.6.5.
Find all posts by this user
Quote this message in a reply
11-04-2011, 01:26 AM
Post: #3
RE: Google jquery (No max-age or expires)
I've got the same with mootools shared lib on googleapis server...
Visit this user's website Find all posts by this user
Quote this message in a reply
11-04-2011, 02:15 AM
Post: #4
RE: Google jquery (No max-age or expires)
The easiest way to fix this is to transfer those files to your servers and set the expires yourself.

The only disadvantage is if their is an update to the those files, you will have to manually update them yourself.

as for the ga.js, i dunno if you could put it on your server because it's being generated by the push code in your analytic.
Find all posts by this user
Quote this message in a reply
11-04-2011, 04:44 AM
Post: #5
RE: Google jquery (No max-age or expires)
This is the response header of http://ajax.googleapis.com/ajax/libs/jqu...ery.min.js

---
Vary Accept-Encoding
Content-Encoding gzip
Content-Type text/javascript; charset=UTF-8
Last-Modified Thu, 22 Sep 2011 14:12:07 GMT
Date Thu, 03 Nov 2011 18:38:52 GMT
Expires Thu, 03 Nov 2011 18:38:52 GMT
Cache-Control private, x-gzip-ok="", max-age=31536000
X-Content-Type-Options nosniff
Server sffe
Content-Length 32103
X-XSS-Protection 1; mode=block
Anfrage-Header
---

Looks like Google has there an error that the Expires date = current date.

From my point of view it would make sense to put all the jQuery files that are used together in 1 file to reduce the number of http-requests.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)