Welcome! Log In Create A New Profile

Advanced

caching

Posted by nginxjunkie 
caching
April 28, 2014 05:33PM
I've set these expires headers in default.conf
The entire site breaks. No CSS and/ or images. Please does anyone know why?

location ~* .(jpg|jpeg|png|gif|ico|css|js)$ {
expires 365d;
}



Edited 2 time(s). Last edit at 04/29/2014 03:47AM by itpp2012.
Re: caching
May 23, 2014 10:16AM
dude i am a newbie, and most messages here have no answers (maybe because nginx is quite new?)
i decided not to to use this directive at the moment, i noticed you didn't put the \ before the dot, but anyway it might not work also.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 48
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready