Skip to content
Snippets Groups Projects
Commit e99374d0 authored by COURCELLE's avatar COURCELLE
Browse files

expiry date = 1y

parent b56648e2
No related branches found
No related tags found
No related merge requests found
...@@ -38,10 +38,20 @@ http { ...@@ -38,10 +38,20 @@ http {
root /var/www/html; root /var/www/html;
index index.php; index index.php;
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ { location ~* \.(txt|xml|js)$ {
access_log off; expires 1y;
log_not_found off; }
expires 30d;
location ~* \.(css)$ {
expires 1y;
}
location ~* \.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|woff2|svg)$ {
expires 1y;
}
location ~* \.(jpg|jpeg|png|gif|swf|webp)$ {
expires 1y;
} }
open_file_cache max=2000 inactive=20s; open_file_cache max=2000 inactive=20s;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment