[Solved] Staticache and Kirby Preview feature clashes

Hi,

Just noticed that when Staticache is enabled, the preview feature doesn’t bypass the cached version of the website, hence showing no changes, I still see the staticache comment in the preview mode confirming that Staticache is still active on Preview mode:
<!-- static 2026-06-05T11:03:41+09:00 -->

I’ve turned off the caching by turning on the Debug mode and the preview worked again. Is there a way to by-pass Staticache while on Preview mode?

Found a fix on the Plugin’s issue thread:

Adding these for Apache server:

#don’t serve for active sessions
RewriteCond %{HTTP_COOKIE} !kirby_session

#don’t serve for URLs with query string
RewriteCond %{QUERY_STRING} ^$

#don’t serve for URLs with Kirby param(s)
RewriteCond %{REQUEST_FILENAME} !: