Lofesa commented 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 is 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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to