Custom Fetch Headers
System Configuration
When not using LoadFromFile, PageSpeed has to make HTTP requests for sub-resources of a page in order to rewrite them. Consider the following HTML snippet:
...
<body>
<img src="example.jpg">
...
If the image optimization is enabled, PageSpeed needs to fetch example.jpg
in order to inline, compress, or otherwise optimize it. If you would like custom headers to be sent with all sub-resource fetches like this one, you can use the CustomFetchHeader
directive:
pagespeed CustomFetchHeader CustomHeader CustomHeaderValue
pagespeed CustomFetchHeader AnotherCustomHeader AnotherValue