Is ngx_pagespeed disabled for X-Accel-Redirect content?

83 views Asked by At

i have ngx_pagespeed running with the following configuration

pagespeed On;
# only apply conservative filters
pagespeed RewriteLevel OptimizeForBandwidth;
pagespeed FileCachePath /mnt/tmp/nginx-pagespeed-filecache;
pagespeed FileCacheSizeKb            102400;
pagespeed FileCacheCleanIntervalMs   3600000;
pagespeed FileCacheInodeLimit        500000;
pagespeed InPlaceResourceOptimization on;
pagespeed RespectXForwardedProto on;
pagespeed FetchHttps enable;

pagespeed Domain DOMAIN;

# enable optimization of images
pagespeed EnableFilters rewrite_images;

It works for normal image requests, but for images which are delivered using the X-Accel-Redirect header mechanism ngx_pagespeed does not seem to work.

Is this a known restriction? Or am i doing sth. wrong?

1

There are 1 answers

0
squiddle On

I found it, i had to add an additional

pagespeed Domain DOMAIN;

entry for the the host of the X-Accel-Redirect url.