Commit 86852986 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

aurweb: serve static assets with nginx and use Cache-Control

parent 29e66580
...@@ -85,6 +85,13 @@ server { ...@@ -85,6 +85,13 @@ server {
#fastcgi_no_cache $no_cache; #fastcgi_no_cache $no_cache;
} }
# directories for static assets
location ~ ^/(?:css|js|images)/ {
expires 30d;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
location ~ .* { location ~ .* {
rewrite ^/(.*)$ /index.php/$1 last; rewrite ^/(.*)$ /index.php/$1 last;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment