Skip to content

Commit d7908af

Browse files
authored
Use Cache-Control: private on uploaded profile data so that it's not cached in proxies (#485)
1 parent 1872fdf commit d7908af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/logic/gcs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class RealGcsStorage implements GcsStorage {
5151
gzip: false, // Our content is already gzipped
5252
metadata: {
5353
contentType: 'text/plain',
54-
cacheControl: 'max-age: 365000000, immutable',
54+
cacheControl: 'max-age: 365000000, immutable, private',
5555
contentEncoding: 'gzip',
5656
},
5757
});

test/api/publish.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe('publishing endpoints', () => {
6868
expect(file).toHaveProperty(
6969
'metadata',
7070
expect.objectContaining({
71-
cacheControl: 'max-age: 365000000, immutable',
71+
cacheControl: 'max-age: 365000000, immutable, private',
7272
contentEncoding: 'gzip',
7373
contentType: 'text/plain',
7474
})

0 commit comments

Comments
 (0)