function responseIsOKAndHtml()

in fusion-plugin-service-worker/src/handlers.js [149:157]


function responseIsOKAndHtml(response) {
  if (!response || !response.headers || !response.status) {
    return false;
  }
  const contentType = response.headers.get('content-type');
  return (
    response.status === 200 && contentType && contentType.indexOf('html') > -1
  );
}