if I do a curl -I http://localhost/images/sample.jpg, I got following
headers, but can not find the “Expires” in the headers, what I did wrong
here? Thanks.
HTTP/1.1 200 OK
Server: nginx/1.4.1
Date: Wed, 19 Jun 2013 03:52:13 GMT
Content-Type: image/jpeg
Content-Length: 17584
Last-Modified: Wed, 19 Jun 2013 02:12:31 GMT
Connection: keep-alive
ETag: “51c1138f-44b0”
Accept-Ranges: bytes
if I do a curl -I http://localhost/images/sample.jpg, I got following
headers, but can not find the “Expires” in the headers, what I did wrong
here? Thanks.
What other “location” lines do you have for this server? Only one of
them will be used for the request /images/sample.jpg.
You are right, thanks to Francis too for giving me the right direction
to
look for the problem, it’s really the other location that should have
the
expires set as well, thanks.