[Question] Blitz + Seomatic setup
Closed this issue · 6 comments
Hello.
Could you clarify to set up the plugin correctly with Blitz and Seomatic?
In the docs you wrote:
You will need to bust the SEOmatic cache in your twig templates (not in the SEOmatic script field)
{# -- START Cache-bust seomatic -- #}
{% set scriptContainer = seomatic.script.container() %}
{% do scriptContainer.clearCache(true) %}
{# -- END Cache-bust seomatic -- #}
This snippet should be placed once or across whole site?
In the head?
Via ajax include [Using Blitz tag]?
Thanks
@umkasanki Did you ever work this one out?
@johnwbaxter
Not yet.
But I would like to know or have an example of how it should be configured.
Well, I'll be trying out every option shortly so will let you know :)
Thanks @johnwbaxter
That snippet is for the internal SEOmatic cache mechanics, not related to blitz.
Have you seen the other Blitz-related issues?
https://github.com/elleracompany/craft-cookie-consent/issues?q=is%3Aissue+is%3Aclosed+blitz
Did you manage to get it to work @johnwbaxter ?
Hey. Did anyone make this work? I have seen other issues in github and make the consent banner working with blitz. But i am not able to stop SEOMatic scripts when consent is declided due to blitz cached page.