From 46e0151c28e4591738752ab588117b85f407ac64 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 17 Jun 2021 08:00:08 +0200 Subject: [PATCH] :lipstick: Start use nginx (without cache) to serve frontend dev files. Usefull for checking production builds and not depend on the shadow-cljs watch http-dev server running. --- docker/devenv/files/nginx.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker/devenv/files/nginx.conf b/docker/devenv/files/nginx.conf index ee7e37bb0..1b7530aac 100644 --- a/docker/devenv/files/nginx.conf +++ b/docker/devenv/files/nginx.conf @@ -128,8 +128,10 @@ http { } location / { - add_header Cache-Control "no-cache, max-age=0"; - proxy_pass http://127.0.0.1:8888; + add_header Last-Modified $date_gmt; + add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; + if_modified_since off; + expires off; } } }