Add caching headers
This commit is contained in:
parent
280802d38a
commit
2b7053ff8b
@ -28,6 +28,12 @@ server {
|
||||
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
|
||||
gzip_disable "MSIE [1-6]\.";
|
||||
|
||||
location ~* \.(css|js)$ {
|
||||
root /usr/share/nginx/html;
|
||||
expires 1d;
|
||||
add_header Cache-Control "public, max-age=86400";
|
||||
}
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user