@@ -69,10 +69,6 @@ public static InputStream downloadObject(
6969 httpHeaders .set ("x-goog-encryption-key" , base64CSEKey );
7070 httpHeaders .set ("x-goog-encryption-key-sha256" , base64CSEKeyHash );
7171
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-
7672 getObject .setRequestHeaders (httpHeaders );
7773
7874 try {
@@ -119,10 +115,6 @@ public static void uploadObject(
119115 httpHeaders .set ("x-goog-encryption-key" , base64CSEKey );
120116 httpHeaders .set ("x-goog-encryption-key-sha256" , base64CSEKeyHash );
121117
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-
126118 insertObject .setRequestHeaders (httpHeaders );
127119
128120 try {
@@ -173,10 +165,6 @@ public static void rotateKey(
173165 httpHeaders .set ("x-goog-encryption-key" , newBase64Key );
174166 httpHeaders .set ("x-goog-encryption-key-sha256" , newBase64KeyHash );
175167
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-
180168 rewriteObject .setRequestHeaders (httpHeaders );
181169
182170 try {
0 commit comments