Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi,
On pages with ajax blocks, the caches are not rebuild. Probably because of has_js cookie?
Thanks.
Hi,
On pages with ajax blocks, the caches are not rebuild. Probably because of has_js cookie?
Thanks.
Comments
Comment #2
Vacilando CreditAttribution: Vacilando as a volunteer commentedDoes the page in question get cached if you access it as an anonymous user via a browser?
Comment #3
gge CreditAttribution: gge commentedYes, when the page is accessed using the browser it gets cached correctly.
I think it has something to do with has_js cookie, because after installing Force JS (as mentioned here), Recacher can rebuild the caches even if the page contains authcache ajax blocks.
Comment #4
Vacilando CreditAttribution: Vacilando as a volunteer commented@gge, I think you successfully answered yourself. It seems that non-browser agents (such as curl, wget, or Googlebot, but also Recacher) will not see a cached version of Authcache ajax blocks unless the (evil!) has_js cookie is removed. The Force JS module works great for that (I use it myself on all sites as well).
Comment #5
gge CreditAttribution: gge commentedThanks for your reply! It would be nice to have Force JS mentioned on Recacher's project page.
Comment #6
Vacilando CreditAttribution: Vacilando as a volunteer commented@gge: OK, done!