Is cache being used?

Ben Lancaster benlancaster at holler.co.uk
Thu Jul 28 07:33:43 UTC 2011


On 28 Jul 2011, at 07:20, egrueda <nginx-forum at nginx.us> wrote:

> Hi, Ben, and thanks again for your answer.
> These are the complete headers in response. This is a magento website,
> but same happens for a joomla site too.
> Maybe the "Expires" header make this object uncacheable?
>
> ---
> HTTP/1.1 200 OK
> Server: nginx
> Date: Thu, 28 Jul 2011 06:15:29 GMT
> Content-Type: image/png
> Connection: keep-alive
> Keep-Alive: timeout=60
> Last-Modified: Sun, 08 Nov 2009 04:37:42 GMT
> Etag: "72884-ed-477d4a3387180"
> Accept-Ranges: bytes
> Content-Length: 237
> X-Powered-By: PleskLin
> Expires: Fri, 29 Jul 2011 06:15:29 GMT
> Cache-Control: max-age=86400
> X-Cache-Status: MISS
> ---
>

As far as I know, Nginx won't cache static files, which makes sense if
you think about it - serving from the cache is the same as serving
from the disk.

Besides, Linux will cache frequently accessed files in memory anyway.



More information about the nginx mailing list