how to use Service Worker to cache cross domain resources if the response is 404?

前端 未结 2 1730
南旧
南旧 2021-02-14 17:02

w3:

6.2 Cross-Origin Resources and CORS¶
Applications tend to cache items that come from a CDN or other origin. It is possible to request

2条回答
  •  抹茶落季
    2021-02-14 17:14

    Unfortunately, there's no way to detect it.

    For security reasons, it's explicitly not allowed: https://github.com/whatwg/fetch/issues/14.

提交回复
热议问题