Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
DDG 上“apple”的搜索结果示例:http: //duckduckgo.com/apple
如果您向下滚动几次,则使用 ajax 会获取更多结果。然后单击一个链接,访问结果,单击返回按钮,DDG 页面与您离开时完全一样。
如何?
我注意到页面上附加了 d.js 文件,它包含所有结果链接。这可能是他们的做法吗?
如果所有链接都是从 JS 文件加载的,并且您当前缓存的 JS 版本是链接的最后(最大)页面,则所有结果都将保留。不确定他们如何强制缓存 d.js 文件,因为它包含一个查询字符串。