Skip to content

Commit 031735d

Browse files
committed
Also tag the project
1 parent 2a235cc commit 031735d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readthedocs/proxito/views/mixins.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ def _serve_docs_nginx(self, request, final_project, version_slug, path, download
126126
response['X-RTD-Version'] = version_slug
127127
# Needed to strip any GET args, etc.
128128
response['X-RTD-Path'] = urlparse(path).path
129-
response['Cache-Tags'] = f'{final_project.slug}-{version_slug}'
129+
# Include the project & project-version so we can do larger purges if needed
130+
response['Cache-Tags'] = f'{final_project.slug}-{version_slug},{final_project.slug}'
130131
if hasattr(request, 'rtdheader'):
131132
response['X-RTD-Version-Method'] = 'rtdheader'
132133
if hasattr(request, 'subdomain'):

0 commit comments

Comments
 (0)