Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview is being cached #17

Open
DanielGarzaB opened this issue Nov 20, 2014 · 1 comment
Open

Preview is being cached #17

DanielGarzaB opened this issue Nov 20, 2014 · 1 comment

Comments

@DanielGarzaB
Copy link

How to avoid caching preview pages?

@Oyabi
Copy link
Contributor

Oyabi commented Nov 22, 2014

Can you give me more information ?
Preview page was generated by a plugin ?
Can you give me the preview page's url ?
Anyway oyu juste have to add domething like that:

if (req.url ~ "/(cart|my-account|checkout|addons|/?add-to-cart=)") {
    return (pass);
}

or that:

# Did not cache the admin and login pages
if (req.url ~ "/wp-(login|admin)") {
    return (pass);
}

;)

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

No branches or pull requests

2 participants