Search code examples
http.htaccessproxyhttp-status-code-403squid

Forbidden 403 - cached in squid proxy?


It seems that squid proxy somehow remembers the 403 Forbidden response and remembers it even if you reload the page which is already accessible.

Steps to reproduce:

  1. Put some restriction to .htaccess (like deny from all). Open in browser, connected via squid proxy, error 403 appears.
  2. Remove the restriction from .htaccess.
  3. Reload the page - the error 403 is still present!

Solution

  • Look at negative_ttl parameter.