Current time: 12-15-2017, 10:16 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My result says that I have an "F" for cached static content
09-21-2014, 03:52 PM
Post: #1
My result says that I have an "F" for cached static content
The report say that all the images that I serve from CloudFront - S3 has no max-age or expires

For example this one:
FAILED - (No max-age or expires) - http://i1.static.truyentranhgay.com/mon-...42c93d.png

And this is what I came up when using Chrome

Code:
[font=Impact]Remote Address:54.239.130.84:80
Request URL:http://i1.static.truyentranhgay.com/mon-qua_f054b9d9106d45a5940cf877d042c93d.png
Request Method:GET
Status Code:304 Not Modified
Request Headersview parsed
GET /mon-qua_f054b9d9106d45a5940cf877d042c93d.png HTTP/1.1
Host: i1.static.truyentranhgay.com
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36
DNT: 1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8,en-GB;q=0.6,vi;q=0.4,fr-FR;q=0.2,fr;q=0.2,ja;q=0.2,es;q=0.2
Cookie: km_ai=8WXTGJLiPu3bpijFiFEdMLt8SFE%3D; km_lv=x; km_uq=; mp_23d6c7b2809a5effda58d31ffa2b1409_mixpanel=%7B%22distinct_id%22%3A%20%22bundau​mamtom1989%22%2C%22%24initial_referrer%22%3A%20%22%24direct%22%2C%22%24initial_r​eferring_domain%22%3A%20%22%24direct%22%2C%22__mps%22%3A%20%7B%7D%2C%22__mpso%22​%3A%20%7B%7D%2C%22__mpa%22%3A%20%7B%7D%2C%22__mpap%22%3A%20%5B%5D%7D; _ga=GA1.2.963397771.1406487656
If-None-Match: "fc81344d3a3e84fdbcb88d49f007572f"
If-Modified-Since: Sun, 14 Sep 2014 11:25:29 GMT
Response Headersview parsed
HTTP/1.1 304 Not Modified
Connection: keep-alive
Date: Sun, 21 Sep 2014 05:50:39 GMT
Cache-Control: max-age=2592000000
Expires: Wed, 11 Apr 2096 20:25:37 GMT
ETag: "fc81344d3a3e84fdbcb88d49f007572f"
Server: AmazonS3
Age: 584679
X-Cache: Hit from cloudfront
Via: 1.1 8b000ada2ea911a25c4380f053ee3656.cloudfront.net (CloudFront)
X-Amz-Cf-Id: iQxg8z71pnyhzaaXL24fK_0pEAFoh6iQ4LHyVOXvCK81SHRKZoWNaA==[/font]

While I passed Google Page Speed and YSlow on this same item. What could be the reason?
Find all posts by this user
Quote this message in a reply
09-27-2014, 05:22 AM
Post: #2
RE: My result says that I have an "F" for cached static content
If you're getting a 304, you aren't setting expires headers on the object so the browser can cache it. The max-age=0 cache-control is also a give-away.

I don't know why page speed gave you a pass for that but it shouldn't.
Visit this user's website Find all posts by this user
Quote this message in a reply
02-05-2015, 01:17 PM
Post: #3
RE: My result says that I have an "F" for cached static content
I'm having this same issue. Did you ever get this resolved?
Find all posts by this user
Quote this message in a reply
02-11-2015, 11:57 PM
Post: #4
RE: My result says that I have an "F" for cached static content
Do you have a link to a test result and what is "this"? Getting proper caching headers on S3?
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: 1 Guest(s)