App cache manifest on CDN?

后端 未结 2 546
礼貌的吻别
礼貌的吻别 2021-02-08 21:44

I\'m reading through details on HTML5\'s app cache manifest (especially from this excellent article). I\'m curious if this idea would work:

We host all of our static res

2条回答
  •  礼貌的吻别
    2021-02-08 22:11

    The cached contents must satisfy the same origin restriction and the origin for comparison is determined by the calling page (the HTML page). If all of the resources you are trying to cache have a different host name then according to the spec they should be rejected. So even if you could specify the manifest to be on the cdn and not your main host, the caching should fail.

提交回复
热议问题