dvRenderedPageHeaders function

Map<String, String> dvRenderedPageHeaders(
  1. List<int> bytes
)

Implementation

Map<String, String> dvRenderedPageHeaders(List<int> bytes) => {
  'content-type': 'text/html; charset=utf-8',
  'etag': 'W/"${sha256.convert(bytes)}"',
  // Revalidate so an internal purge takes effect in browsers and CDNs too.
  'cache-control': 'public, no-cache, must-revalidate',
  'vary': 'Cookie, Authorization, Proxy-Authorization, Accept-Encoding, Accept-Language, X-Dartvel-Theme, X-Dartvel-Locale, Sec-GPC',
};