开发者

A few questions regarding CACHE MANIFEST syntax/limitations

开发者 https://www.devze.com 2023-01-18 00:36 出处:网络
I could not find any answers to the following questions, so where better than to ask on StackOverflow? :)

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

精彩评论

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