putyourlightson / craft-blitz

Intelligent static page caching for creating lightning-fast sites with Craft CMS.
https://putyourlightson.com/plugins/blitz
Other
149 stars 36 forks source link

Blank screen/page #652

Closed knynkwl closed 5 months ago

knynkwl commented 5 months ago

Support Request

Hey! I have an old site where the cache is every now and then being created as a blank page. Any chance someone knows the underlying issue here?

The site comes back if I clear the cache but soon after goes back to a blank screen.

Screenshot 2024-04-10 at 3 56 53 PM

Plugin Version

3.10.3

bencroker commented 5 months ago

You’re many versions behind the latest v3, currently 3.14.0. This issue was most likely fixed in one of the version s in between, as I haven’t had any other reports of it. Can you please test with version 3.14.0?

bencroker commented 5 months ago

Any update on this, @knynkwl?

bencroker commented 5 months ago

Closing due to inactivity.

russback commented 3 months ago

Not sure if this related but we had an issue on Servd today where we are using their cache layer as a reverse proxy and it was only happening when using the generator (specifically HttpGenerator).

Matt at Servd helpfully tracked that down to needing to add token as a param to be included in the Servd static cache layer settings.

Screenshot 2024-07-03 at 17 27 47
bencroker commented 3 months ago

Thanks, @russback. This seems unrelated but good to know!

bencroker commented 3 months ago

For the record, Servd recommends setting Include query params in cache keys to Include all query params selected. I’m guessing you intentionally deviated from that.

Source: https://servd.host/docs/caching-with-blitz

screenshot-RuEW8lth@2x

russback commented 3 months ago

Thanks @bencroker yes I'd set the config there to match what we have in the blitz config - to only include particular params that we are using in templates, ie those used on pages like search results and filterable listings. A practice we have been following to limit the number of cached pages and ignore any other arbitrary query params.