I’m trying to set a header cache exclude for my wp-admin pages. While I can login OK (caching is disabled for the login page), pages within the dashboard won’t update (i.e. are still cached). I am wondering if I should be using a wildcard, like wp-* to match any URL with wp-login or wp-admin at the start, or maybe even a “starts_with wp-” (but unsure if that variable is only for redirects, rather than headers).
Currently:
header /wp-login/ {
Cache-Control no-cache
}
header /wp-admin/ {
Cache-Control no-cache
}
Wondering if it should be along the lines of:
header /wp-login* {
Cache-Control no-cache
}
header /wp-admin* {
Cache-Control no-cache
}
But just not sure of the specifics (maybe it should be /wp-admin.*?)