Signed Exchanges: Some subresources are not cached in webpkgcache.com

I have 2 identical files. They differ in URL only. One is placed in a slightly different directory.

Both files are preloaded on my website. However, for some reason, only one is cached by Google SXG cache (webpkgcache.com).

This one preloads fine: https://www.planujemywesele.pl/ui/fonts/1/ArcherSSm-Book_Web.woff2
This has issue: https://www.planujemywesele.pl/ui/fonts/ArcherSSm-Book_Web.woff2

Here is a demonstration: https://www.planujemywesele.pl/sxg-tests/font/2

If you can’t see the CORS error, it may be caused by the page being removed from the Google SXG cache. Just wait 30 seconds and perform the test again.

This problem may not happen all the time. It happened today, but a few days earlier everything was working fine.

Seems like a bug in Cloudflare ASX or Google SXG Cache. What do you think?

The issue was caused by Etag header on static assets. Removing them resolves the problem.
It took me long time to understand why. I wrote a blog post about it, you can read it here:
https://blog.pawelpokrywka.com/p/debugging-complex-signed-exchanges-subresource-issue

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.