-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change resource table to be based on mime type (#1698)
Follow-up to #1689 Instead of just using resource types, using a combination of mime type, resource type and extension analysis. Current logic is: - if resourceType is script, stylesheet, image, font, use that definitely - if resourceType is fetch/xhr, also check for extension, specifically for images - categorize favicon.ico separately as 'favicon' - also check for extension for json - also check for pdf by type + extension - categorize 'ping' as 'other' - by default, use the first part of mime as the type
- Loading branch information
Showing
2 changed files
with
146 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters