Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

"Never cache the following pages" option not working #544

Open
icryptoyoda opened this issue Nov 27, 2017 · 5 comments
Open

"Never cache the following pages" option not working #544

icryptoyoda opened this issue Nov 27, 2017 · 5 comments

Comments

@icryptoyoda
Copy link

I have tried with the original w3tc plugin, and the "Never cache the following pages:" working fine for me. But with this fixed version, it's not working.

I want to prevent w3tc (fixed) plugin from caching certain pages. How to do it? is there any other workaround available?

@nigrosimone
Copy link
Collaborator

mhh... the main difference between original and fixed version is: we support regular expression.
this mean, on fixed version you can reject some uri by writing a regular expression see #398

Maybe your uri match some regex? you can provide an exaple of "Never cache the following pages" input?

@devdz
Copy link

devdz commented Dec 18, 2017

Hello there,

I'm trying to disable cache on some specific pages and the option "Never cache the following pages:" seems not to be applied.

My pages I don't want cached are
https://example.com/jobs/add
https://example.com/jobs/preview
and others.

in the setting option i've set:

wp-.*\.php
/resumes/register.+
/jobs/add.+
/jobs/add
/jobs/preview.+
/jobs/preview
.*jobs.*

But the pages still return the headers:

Expires:Thu, 21 Dec 2017 00:57:32 GMT
Keep-Alive:timeout=5, max=500
Last-Modified:Mon, 30 Mar 2015 09:49:14 GMT

----> How can I disable caching on these pages?

Note: these are forms pages where users POST the page, and they get back the cached empty page. So the site is totally broken :)

Thanks,

PS: I'm getting this problem with both the W3tc standard (which says it supports regular expression as well?) and the fixed version.

@P5hngMeAwy
Copy link

easy.
/jobs/add*
/jobs/preview*

@devdz
Copy link

devdz commented Jan 14, 2018

@P5hngMeAwy unfortunately it's not working for me, even after adding /jobs/add*, I'm still seeing the Expires header sent for those pages /job/add and other under it. Any thoughts?

@P5hngMeAwy
Copy link

P5hngMeAwy commented Jan 15, 2018

Hello @devdz
What method are you using?
Try with Disk Enhanced.
Also you need to disable object cache , database cache, purge all and try again.
Can you send me your configuration?
e-mail: [email protected]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants