Commit 07762bcf authored by hark's avatar hark

la

parent b4fcb244
Pipeline #1215 canceled with stage
......@@ -56,6 +56,9 @@ http {
add_header Cache-Control: public;
add_header Pragma public;
if_modified_since before;
etag on;
expires 1m;
location ~* (.+\.(jpg|jpeg|gif|png|ts))$ {
#immutable responses
......
......@@ -18,8 +18,8 @@ http {
proxy_cache_valid 200 302 10m;
proxy_cache_valid 301 1h;
proxy_cache_valid any 1m;
add_header X-Cached-ssl $upstream_cache_status;
add_header X-Cache-Date-ssl $upstream_http_date;
add_header X-Cached $upstream_cache_status;
add_header X-Cache-Date $upstream_http_date;
......@@ -49,6 +49,10 @@ http {
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
if_modified_since before;
etag on;
expires 1m;
location / {
root /www/static;
autoindex on;
......
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