3 ms·
You can already do that. good.com: <script src="/js/site.js"> evil.com: <img src="https://www.good.com/js/site.js"> Then use the na
by cbr 12y ago
You can already do that.
good.com:
<script src="/js/site.js">
evil.com:
<img src="https://www.good.com/js/site.js">
Then use the navigation timing api to figure out whether the js was already in cache.
- cbr 12y ago(Actually, you could use the onload event; you don't actually need navigation timings.)