Skip to content
Snippets Groups Projects
Commit c4c5a267 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

add cache-control header

parent 38db5347
No related branches found
No related tags found
No related merge requests found
Pipeline #9093 passed
......@@ -25,6 +25,9 @@ server {
# Set our custom CORS
#add_header 'Access-Control-Allow-Origin' $allow_origin;
# Set Cache-Control
add_header Cache-Control "max-age=0, stale-while-revalidate=604800";
# If you need to see nginx cache status. Uncomment line below.
add_header X-Cache-Status $upstream_cache_status;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment