Translation + Page Cache = Broken Add to Wishlist button
-
Hello.
I hope my reverse engineering is correct.
These are the details:
- I’m using the “Enable AJAX loading” option.
- I’m using a translation file (via Loco).
- I’m using page cache (caching the entire HTML).
- Because of the translation, some JavaScript code is being inlined.
- This code contains
nonces
: https://drive.google.com/file/d/14dOqHlPhdAlGOb9lZOEsvj-BBB2HvfLi/view?usp=drivesdk - As it is inlined, this code is being cached – including the
nonces
. - After 24 hours, the
nonces
aren’t valid anymore. - Because the
nonces
aren’t valid, the Add to Wishlist button not showing up (the Ajaxload_fragments
returnsfalse
).
If this is correct, how can we solve it?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Translation + Page Cache = Broken Add to Wishlist button’ is closed to new replies.