TTL override not working on JSON feed
-
I have “Cache TTL” set to 130
I have “Override default TTL” ON
Then on a JSON Feed page I have Varnish caching TTL set to 10
But below are the headers from the server gotten with curl -I directly from apache and the page gets cached for 130 seconds via varnish…HTTP/1.1 200 OK
Date: Tue, 19 Nov 2019 21:23:29 GMT
Server: Apache
X-Powered-By: PHP/7.3.9
X-VC-Enabled: true
X-VC-TTL: 130
Link: <https://mysite/wp-json/>; rel=”https://api.w.org/”
Link: <https://mysite/?p=7112>; rel=shortlink
Vary: Accept-Encoding,User-Agent
Content-Type: text/html; charset=UTF-8I thought it should override the default 130 and set X-VC-TTL: 10, is it because it’s a JSON feed ? I’ll add a custom rule but it would be nice if the Override worked as intended for this…
- The topic ‘TTL override not working on JSON feed’ is closed to new replies.