knock-knock icon indicating copy to clipboard operation
knock-knock copied to clipboard

Compatibility with Blitz plugin using server rewrites

Open samuel-clara opened this issue 8 months ago • 1 comments

Question

I think this may be impossible but I'm wondering if there is a way to have knock-knock redirect working even when using Blitz plugin when cached is enabled and with server rewrites enabled?

Additional context

https://putyourlightson.com/plugins/blitz#server-rewrites

samuel-clara avatar Mar 31 '25 21:03 samuel-clara

Yeah, with server rewrites, I don't see how this is possible, as the request never even hits Craft for Knock Knock to handle things. It's essentially serving up a literal HTML file, so nothing dynamic, or routing handled.

We'd have to introduce something at the web-server level, which is getting beyond the scope of a Craft plugin at that point.

engram-design avatar Apr 01 '25 00:04 engram-design