@@ -93,7 +93,7 @@ Future<shelf.Response> handleDartDoc(
9393 if (htmlBytes != null ) {
9494 return htmlBytesResponse (
9595 htmlBytes,
96- headers: CacheControl .packageContentPage .headers,
96+ headers: CacheControl .documentationPage .headers,
9797 );
9898 }
9999
@@ -217,7 +217,7 @@ Future<shelf.Response> handleDartDoc(
217217 await htmlBytesCacheEntry.set (bytes! );
218218 return htmlBytesResponse (
219219 bytes,
220- headers: CacheControl .packageContentPage .headers,
220+ headers: CacheControl .documentationPage .headers,
221221 );
222222 case DocPageStatusCode .redirect:
223223 return redirectPathResponse (status.redirectPath! );
@@ -243,14 +243,14 @@ Future<shelf.Response> handleDartDoc(
243243 }
244244
245245 if (request.method.toUpperCase () == 'HEAD' ) {
246- return htmlResponse ('' , headers: CacheControl .packageContentPage .headers);
246+ return htmlResponse ('' , headers: CacheControl .documentationPage .headers);
247247 }
248248
249249 final acceptsGzip = request.acceptsGzipEncoding ();
250250 return shelf.Response .ok (
251251 acceptsGzip ? dataGz : gzip.decode (dataGz),
252252 headers: {
253- ...CacheControl .packageContentPage .headers,
253+ ...CacheControl .documentationPage .headers,
254254 'Content-Type' : mime,
255255 'Vary' : 'Accept-Encoding' , // body depends on accept-encoding!
256256 if (acceptsGzip) 'Content-Encoding' : 'gzip' ,
0 commit comments