Added support for cache using mimetype
This commit is contained in:
parent
d2688cf08c
commit
d74949cc18
1 changed files with 20 additions and 11 deletions
|
|
@ -1,5 +1,14 @@
|
||||||
{% include "_header_comment.conf" %}
|
{% include "_header_comment.conf" %}
|
||||||
|
|
||||||
|
map $sent_http_content_type $expires {
|
||||||
|
default off;
|
||||||
|
text/html epoch;
|
||||||
|
text/css max;
|
||||||
|
application/javascript max;
|
||||||
|
~image/ max;
|
||||||
|
~font/ max;
|
||||||
|
}
|
||||||
|
|
||||||
{% if enabled %}
|
{% if enabled %}
|
||||||
server {
|
server {
|
||||||
set $forward_scheme {{ forward_scheme }};
|
set $forward_scheme {{ forward_scheme }};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue