ubl-chj/collections-ui

service worker tile prefetch does not work properly if image server proxies are not configured for CORS preflight with OPTIONS enabled

Closed this issue · 2 comments

noticed that when tiles are fetched by the service worker, it complains about opaque responses. This is a pretty substantial problem as it reduces the caching performance of the viewer significantly.

As can be observed for all of the major institutions who are supporting IIIF, if OPTIONS is not properly configured on the image server proxy for CORS preflight, these responses are opaque. This is bad and this needs to be addressed globally by the IIIF.

the workaround for no OPTIONS support is to not cache opaque responses. Implemented with 365cc26