@@ -69,10 +69,6 @@ public static InputStream downloadObject(
69
69
httpHeaders .set ("x-goog-encryption-key" , base64CSEKey );
70
70
httpHeaders .set ("x-goog-encryption-key-sha256" , base64CSEKeyHash );
71
71
72
- // Since our request includes our private key as a header, it is a good idea to instruct caches
73
- // and proxies not to store this request.
74
- httpHeaders .setCacheControl ("no-store" );
75
-
76
72
getObject .setRequestHeaders (httpHeaders );
77
73
78
74
try {
@@ -119,10 +115,6 @@ public static void uploadObject(
119
115
httpHeaders .set ("x-goog-encryption-key" , base64CSEKey );
120
116
httpHeaders .set ("x-goog-encryption-key-sha256" , base64CSEKeyHash );
121
117
122
- // Since our request includes our private key as a header, it is a good idea to instruct caches
123
- // and proxies not to store this request.
124
- httpHeaders .setCacheControl ("no-store" );
125
-
126
118
insertObject .setRequestHeaders (httpHeaders );
127
119
128
120
try {
@@ -173,10 +165,6 @@ public static void rotateKey(
173
165
httpHeaders .set ("x-goog-encryption-key" , newBase64Key );
174
166
httpHeaders .set ("x-goog-encryption-key-sha256" , newBase64KeyHash );
175
167
176
- // Since our request includes our private key as a header, it is a good idea to instruct caches
177
- // and proxies not to store this request.
178
- httpHeaders .setCacheControl ("no-store" );
179
-
180
168
rewriteObject .setRequestHeaders (httpHeaders );
181
169
182
170
try {
0 commit comments