Commit d16d80fb authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Merge branch 'aurweb-static-assets' into 'master'

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

See merge request !78
parents 29e66580 86852986
Pipeline #1619 passed with stage
in 44 seconds
......@@ -85,6 +85,13 @@ server {
#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 ~ .* {
rewrite ^/(.*)$ /index.php/$1 last;
}
......
Markdown is supported
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