4 ms·
It seems like this is a very small gain. After the initial fetch everything should be cached locally. If it's not you did it wrong. Am I missing something? H
by snarfy 9y ago
It seems like this is a very small gain. After the initial fetch everything should be cached locally. If it's not you did it wrong.
Am I missing something? How is this better than normal web caching?
- Yoric 9y agoYes and no. You are right, after the initial fetch, everything should be cached locally. However, caching traditionally does not affect parsing speed. While size gains are a nice side-benefit of this proposal, the main benefit is parsing speed. Now, both Chromium and Firefox have introduced smarter caching that caches post-parsing data for websites that you have already visit (or visit often, I don't remember the heuristics). This is very useful for all the sites that you visit regularly and that do not update their JS code between your visits. However, for all the sites that do update their JS code between your visits, including Facebook (which updates several times per day), Google Docs, etc. and every random website that you read because of a link on Hacker News but will never revisit again, there is a potentially pretty large size benefit. Does this answer your question?