Skip to content

Commit b47e98d

Browse files
committed
Bug 1995787 - Add Cache-Control: no-store or Cache-Control: private to all attachments to prevent CDN from caching private attachments that are mistaken as static assets
1 parent 5a7d04c commit b47e98d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

attachment.cgi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,8 @@ sub view {
423423
print $cgi->header(
424424
-type => $contenttype,
425425
-content_disposition => "$disposition; filename*=$filename_star",
426-
-content_length => $attachment->datasize
426+
-content_length => $attachment->datasize,
427+
-Cache_Control => 'no-store, private'
427428
);
428429
disable_utf8();
429430
print $attachment->data;

0 commit comments

Comments
 (0)