SXG tests

Cache-Control subresource demo

  • Open Network tab in Chrome Dev Tools.
  • Click the button.
  • Wait for the SXG cache to fill (up to 1 minute, typically 15 seconds). Continuing without waiting won't break anything, but keep in mind results may not be final and you may need to repeat the next step one or more times.
  • Click the same button again.
  • Observe CORS error when the browser tries to prefetch invalid.css.

  • Explanation

    The problematic subresource sets the max-age directive in the Cache-Control HTTP header to 100 seconds, which is too short for SXG.

    For the context see this article.