Allow browser caching of common ressources (js, css img, vid and audio)

This commit is contained in:
Daniel Winzen
2017-08-26 14:49:03 +02:00
parent 6c6b6a689d
commit e34ad9efd7

View File

@ -39,6 +39,16 @@ http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
map $sent_http_content_type $expires {
default off;
~image/ 10d;
~video/ 10d;
~audio/ 10d;
text/css 10d;
application/javascript 10d;
}
expires $expires;
##
# Logging Settings
##