The best configuration for serving static content

António P. P. Almeida appa at
Mon Dec 5 16:22:19 UTC 2011

On 5 Dez 2011 10h29 WET, nginx-forum at wrote:

> location ~ \.(css|js|jpg|jpeg|png|gif)$ {
> expires 31536000s;
Why don't you use:

expires 1y; 

It's easier to understand IMO.

--- appa

More information about the nginx mailing list