The best configuration for serving static content

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


On 5 Dez 2011 10h29 WET, nginx-forum at nginx.us 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