如果我使用 iOS Safari 的缓存 list 来离线缓存页面,如果我使用完整的 URL,它是否仍然有效,例如
https://example.com/content/folder/image.jpg
在缓存文件中,还是我必须使用相对 URL?
最佳答案
document明确指出:
The URLs are file paths to resources you want to download and cache locally. The file paths should be relative to the location of the manifest file—similar to file paths used in CSS—or absolute.
所以应该是相对URL。
但我也发现了一个旧的link那是说
Resource URLs can be absolute or relative to the manifest file. Each URL must appear on a separate line.
您可能应该坚持使用最新文档并仅使用相对 URL。
关于ios - 我可以在 iOS 缓存 list 中使用完整的 URL 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45575267/