I have some web services that return JSON data with the Content-type of application/json. PageSpeed is overwriting the Cache-Control headers I send even with
ModPagespeedModifyCachingHeaders off
It is always sending:
Cache-Control:
max-age=0, no-cache
While also killing my gzipping.
The response headers before PageSpeed are:
Connection:
Keep-Alive
Content-Encoding:
gzip
Content-Length:
700
Content-Type:
application/json
Date:
Tue, 16 Feb 2016 22:09:57 GMT
Expires:
Tue, 16 Feb 2016 23:09:57 GMT
Keep-Alive:
timeout=2, max=1000
Server:
Apache
ServerID:
php-dev01
Vary:
Accept-Encoding
The headers after are:
Cache-Control:
max-age=0, no-cache
Connection:
Keep-Alive
Content-Length:
5574
Content-Type:
application/json
Date:
Tue, 16 Feb 2016 22:10:24 GMT
Etag:
W/"PSA-Xgxb1zUWTX"
Expires:
Tue, 16 Feb 2016 23:03:43 GMT
Keep-Alive:
timeout=2, max=999
Server:
Apache
ServerID:
php-dev02
Vary:
Accept-Encoding
X-Content-Type-Options:
nosniff
I am on the latest version and have tried everything I can think of to fix the Cache-Control and Content-Encoding.
Please help. Thanks!