开发者

A few questions regarding CACHE MANIFEST syntax/limitations

I could not find any answers to the following questions, so where better than to ask on StackOverflow? :)

  1. Can I use full abs开发者_如何转开发olute URL's in my CACHE MANIFEST file?

    Example:

    CACHE MANIFEST
    http://www.example.com/css/stylesheet.css
    http://www.example.com/img/image.png
    
  2. Will the browser cache files on a different domain than the origin if they are listed in the MANIFEST?

    Example:

    CACHE MANIFEST
    http://www.example.com/css/stylesheet.css
    http://www.exampleimages.com/img/image1.png
    http://www.exampleimages.com/img/image2.png
    


I don't think you can, because of Same-Origin constraints.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜