Hi there
Please excuse me, another issue from me. :-)
On the production server go_back does not work as expected for anonymous visitors. It seems that the goback url gets cached. After I clear the cache, the first referer gets cached and does not get regenerated on subsequent visits.
You set the cache max age to 0 at the end of GoBack.php. But according to https://drupal.stackexchange.com/a/185224 this does not work for anonymous users without a session. I believe, that's the source of the problem.
I added the cache killswitch at the end of the build() function (see patch) and it solves this issue. However, as I am not very experienced with caching, I can not rule out that this generates some other issues.
Please review the code and - if possible - suggest a better solution.
Regards, Patrick
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | go_back-caching_for_anonymous-3062270-1-8.x.patch | 515 bytes | piridium |
Comments
Comment #2
piridium commentedComment #4
saesa commentedThanks for the patch! :)
Comment #5
saesa commented