Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 14, 2017
Merged

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

@@ -73,7 +73,9 @@ class OptimizedImages extends Gatherer {
}

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.

None yet

2 participants