You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pagespeed.apache.org by GitBox <gi...@apache.org> on 2020/04/18 10:22:58 UTC
[GitHub] [incubator-pagespeed-mod] Lofesa edited a comment on issue #1988:
x-content-type-options nosniff duplicated
Lofesa edited a comment on issue #1988: x-content-type-options nosniff duplicated
URL: https://github.com/apache/incubator-pagespeed-mod/issues/1988#issuecomment-615333747
Stuff not processed by pagespeed have any common characterisc?
If they have a common characterisc (from the same folder, some file type...) maybe you can add the header selectively to these resources.
I found in the code that x-content-type header is added in 3 files:
https://github.com/apache/incubator-pagespeed-mod/blob/b4bf44cc56d8bbf17494c540dfb6ef20dfcf5073/pagespeed/apache/instaweb_handler.cc#L623
https://github.com/apache/incubator-pagespeed-mod/blob/b4bf44cc56d8bbf17494c540dfb6ef20dfcf5073/net/instaweb/rewriter/server_context.cc#L1104
https://github.com/apache/incubator-pagespeed-mod/blob/b4bf44cc56d8bbf17494c540dfb6ef20dfcf5073/pagespeed/apache/apache_fetch.cc#L121
In the server_context.cc file seems not to be related.
I donĀ“t have any apache environtment to test if changing these to header->Replace can break any thing.
Maybe @oschaaf or @jmarantz can have some clue.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services