souin: [bug] blank page cached on context canceled
I have a recurring error where the homepage of the website is blank.
When I check the key value in redis, it looks like this:
HTTP/0.0 200 OK
Date: Fri, 21 Apr 2023 18:44:19 GMT
X-Souin-Stored-Ttl: 24h0m0s
Content-Length: 0
What strikes to me is the key name, which is GET-https-www.website.com-/
, which all the other keys have {-VARY-}
appended to them. If I delete the key, and refresh the website, the new key that appears is GET-https-www.website.com-/{-VARY-}Accept-Encoding:gzip, deflate, br
, and now the page isn’t blank anymore.
What would cause that?
About this issue
- Original URL
- State: open
- Created a year ago
- Comments: 50 (44 by maintainers)
Hello @midnight-wonderer thank you for your feedback.
I think the workflow to reproduce is
I will try to make a reproducible example in the E2E tests but that’s quite hard to make it reliable.
Nice, now we know where, I have to check why and how to reproduce.
Got it.
So far everything works perfectly. Let’s close this! Thanks @darkweak
Reopened again 😅
Seems OK locally. I just pushed to prod for a small segment of our network and will let you know if we still get blank pages. Thanks!
To keep you updated, I’ll work on that tomorrow.
Nice, that means I don’t handle correctly the client disconnections. It should be quite easy to reproduce if that’s this case. Let’s reopen this issue then 🙂
It’s a brand new website, not really public yet. I think it might have to do with robot scanning the website, generating incorrect cached page. I’ll investigate it more thoroughly soon.