Cycling-UK / cycling-uk-application

0 stars 0 forks source link

Anonymous page caching #7

Closed j4-m closed 5 months ago

j4-m commented 6 months ago

All URLs tested return a MISS for the X-Cache header. This means that Varnish is requesting the page from Drupal rather than serving from cache.

j4-m commented 6 months ago

I've been doing some debugging to try and narrow down what is making responses unchangeable. For starters, the subscribe form which is included in the footer of every page is using the Honeypot module which is explicitly disabling page caching but this could be quite straight forward to resolve:

https://www.drupal.org/project/honeypot/issues/1559610

sachawellborn commented 6 months ago

Thanks James – Im not seeing anywhere in the config at /admin/config/content/honeypot that explicitly says something like “Disable time restriction”. Do you know if the time restriction can be disabled via the config gui?

Thanks Sacha

j4-m commented 6 months ago

@alistair-martin @sachawellborn unfortunately the other place where caching is being prevented is the miniorange_oauth_client and because the source code of this module it's going to be quite difficult to workaround this. Do you know if you have a support contact through your account with miniorange?

j4-m commented 6 months ago

Actually ignore the above. I'll try and get some support through their Slack channel.

sachawellborn commented 6 months ago

@j4-m Actually I see where to disable the time restriction - it's in the description text below the time limit field, where it also mentions the page caching: Minimum time required before form should be considered entered by a human instead of a bot. Set to 0 to disable. Page caching will be disabled if there is a form protected by time limit on the page.

j4-m commented 6 months ago

I've put a message on the miniorange slack asking for support.