Allow browser caching of common ressources (js, css img, vid and audio)
This commit is contained in:
@ -39,6 +39,16 @@ http {
|
|||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
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
|
# Logging Settings
|
||||||
##
|
##
|
||||||
|
Reference in New Issue
Block a user