How do I configure Cloudflare to prevent caching of Docker registry authentication tokens?

Responsive Ad Header

Question

Grade: Education Subject: Support
How do I configure Cloudflare to prevent caching of Docker registry authentication tokens?
Asked by:
90 Viewed 90 Answers

Answer (90)

Best Answer
(287)
You should configure Cloudflare Page Rules to bypass the cache for any URL endpoints related to authentication, such as `/auth`, `/token`, or any custom authentication paths your registry uses. This prevents sensitive authentication information from being cached and potentially exposed.