Skip to content

Commit

Permalink
Do not use stale cache while revalidating (#212)
Browse files Browse the repository at this point in the history
This shows outdated tiles even when they have been updated. Another
refresh shows the updated tiles.
  • Loading branch information
hiddewie authored Jan 22, 2025
1 parent 81d6dc0 commit 62386ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/proxy.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,6 @@ server {
proxy_redirect off;

add_header X-Cache-Status $upstream_cache_status;
add_header Cache-Control "public, max-age=${CLIENT_CACHE_TTL_FRESH}, stale-while-revalidate=${CLIENT_CACHE_TTL_STALE}, stale-if-error=${CLIENT_CACHE_TTL_STALE}";
add_header Cache-Control "public, max-age=${CLIENT_CACHE_TTL_FRESH}, stale-if-error=${CLIENT_CACHE_TTL_STALE}";
}
}

0 comments on commit 62386ca

Please sign in to comment.