SXG tests

Too large 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 errors when the browser tries to prefetch 1045000.css and 1048576.css. Other CSS files should be prefetched without issues.

  • Explanation

    Each CSS file is named after its size. Google SXG cache refuse to store subresources larger than ~1044 KB.

    For the context see this article.