Skip to content

core(optimized-images): skip mismatched mimeTypes#4045

Merged
patrickhulce merged 1 commit intomasterfrom
opt_images
Dec 14, 2017
Merged

core(optimized-images): skip mismatched mimeTypes#4045
patrickhulce merged 1 commit intomasterfrom
opt_images

Conversation

@patrickhulce
Copy link
Collaborator

workaround fix for https://bugs.chromium.org/p/chromium/issues/detail?id=787701 in addition to the chrome-side fix


seenUrls.add(record._url);
const isOptimizableImage = /image\/(png|bmp|jpeg)/.test(record._mimeType);
const isOptimizableImage = record._resourceType &&
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking about adding a comment here that we should remove it later on but TBH this makes it more robus anyway so LGTM :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants