We are testing fastly on the free tier and one of our tests relates to stale content.
So I tried these steps:
- Enable the “Serve stale content on origin failure” option
- Visit the website and some webpages under it
- Check with “Check cache” option if the content is cached (it is).
- Stop the web service on the backend
- Try to server the cached content while the backend service is off
I would expect the cached (stale) content to be served but I get this instead:
Error 503 Backend unavailable, connection timeout
Backend unavailable, connection timeout
Error 54113
Details: cache-toj-letoxxxxxxx-TOJ dddddddddd dddddddddd
Varnish cache server
I also tried the custom VCL in the documentation:
Am i doing something wrong?