Y
Y
Yeah2016-11-28 13:31:12
Network administration
Yeah, 2016-11-28 13:31:12

How to exclude a directory in nginx?

Hello.
When caching the site, the admin / wp-admin is also cached
How can I make an exception in the nginx.conf file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Godless, 2016-11-28
@Godless

location /wp-admin {
            add_header Cache-Control no-cache;
            expires -1;
        }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question