Welcome! Log In Create A New Profile

Advanced

Re: The best configuration for serving static content

António P. P. Almeida
December 05, 2011 11:24AM
On 5 Dez 2011 10h29 WET, nginx-forum@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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

The best configuration for serving static content

etrader December 05, 2011 05:29AM

Re: The best configuration for serving static content

Valentin V. Bartenev December 05, 2011 10:22AM

Re: The best configuration for serving static content

António P. P. Almeida December 05, 2011 11:24AM

Re: The best configuration for serving static content

Maxim Dounin December 05, 2011 11:34AM

Re: The best configuration for serving static content

António P. P. Almeida December 05, 2011 12:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 124
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready