Skip to main content

Questions tagged [plugin-blitz]

Questions about the Blitz plugin.

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

Add to cart via Ajax (sometimes) results in abandoned carts and invalid CSRF

In Craft Commerce, I am using the Blitz Cache plugin. My "add to cart"-button uses ajax to add the product to the cart. This is the twig-code for the form: <form method="post" ...
nitech's user avatar
  • 679
1 vote
2 answers
481 views

Blitz not updating cache on multi-sites

I have been using Blitz caching on a Craft (v3.759) site and it is working well. I recently added a second site using Craft's multisite capability. This second site uses a different domain and I have ...
Jack McKenzie's user avatar
0 votes
1 answer
385 views

Blitz: Exclude URL with specific query parameters

I have a blog listing page, which I would like to cache using Blitz. However, when a user searches the blog (/blog?search=something) I'd like to load the un-cached version. I'm using server rewrite to ...
Matanya's user avatar
  • 472
2 votes
1 answer
173 views

Dynamic entries?

My website features music releases. On the homepage, it shows the current week of releases. It also offers the ability to go back to previous weeks and see the releases e.g. mysite.com/new-releases/05-...
fxfuture's user avatar
  • 279
1 vote
1 answer
366 views

Load currentUser using Sprig with Blitz

I'm having an issue with Sprig + Blitz Caching. I'm trying to load a user image if currentUser exists, though I'm having an issue with the caching. Sprig is loading in the unregistered user photo when ...
JMKelley's user avatar
  • 1,416
2 votes
1 answer
2k views

400 bad request ("Unable to verify your data submission.") when Adding product to cart

When a user tries to add something into the cart the following error appears: 400 bad request ("Unable to verify your data submission.") 2021-02-23 09:08:42 [-][-][...
KSPR's user avatar
  • 3,786
1 vote
1 answer
625 views

Get image asset relative url

I'm using image transforms and getUrl() method to display an image. I'm using Blitz to export my site as a static website. My problem is that .html pages get cached with images that have full urls ...
gkpo's user avatar
  • 123
3 votes
1 answer
491 views

How to cache and serve different data to different users using Blitz?

What strategy should I take when I want to serve different data to different users with (Blitz) cache? Logged in users get one set of prices (that can vary depending on their price group memberships), ...
nitech's user avatar
  • 679
1 vote
2 answers
240 views

Dynamic Blitz Template not loading currentUser

I have a Dynamic Blitz template with a currentUser if statement within it. For some reason, it's not working and I can't figure out why. It gets loaded in as follows: {{ craft.blitz.getTemplate('...
JMKelley's user avatar
  • 1,416
2 votes
1 answer
563 views

Blitz Cache dynamic button

I have a Blitz Cache but the only bit of dynamic data on the page is a "Follow" button which changes depending on if you're following this entry. Looking at their docs, I don't see a way of ...
JMKelley's user avatar
  • 1,416