An Alternative to WebBundles

Samuel Michael Squire
1 min readSep 4, 2020

--

This is an idea I had, an alternative to web bundles and solves the same issues.

Inside a HTML file, we introduce an attribute for embedded resources called cache=”identifier”. Script tags, style tags will have this attribute defined. There would also need to be an embedded image introduced. Inline all your resources.

The browser will fetch the HTML and add whatever has the cache=”identifier” to its cache.

Then when the browser fetches a page, it will send a Cache-Got header, this is a bloom filter serialized of identifiers cached.

The server will check the bloomfilter to see if an item needs to be sent to the client and exclude the contents of those embedded resources with an empty script tag or empty style tag.

--

--