diff --git a/nginx.conf b/nginx.conf index 98853e5425..337f837b22 100644 --- a/nginx.conf +++ b/nginx.conf @@ -99,6 +99,10 @@ http { rewrite ^ /vulnerabilities/index.html break; } + location ~* /(\index.html)?$ { + add_header Cache-Control "public, max-age=300, stale-while-revalidate=300"; + } + # use hugo's built in 404 page for now error_page 404 /404.html;