alpshq / statamic-cache-evader

A statamic Addon to help you evade the static cache and support forms on cached pages.
MIT License
5 stars 0 forks source link

419 page expired #5

Open elmanvebs opened 1 year ago

elmanvebs commented 1 year ago

Hi,

First of all thank you for the great add-on.

Recently, I have noticed that it is not working perfectly with full measure anymore. On the first load, the correct CSFR value XXXXXXXXXXXXX is displayed, but if the page is refreshed, I see STATAMIC_CSRF_TOKEN instead. This results in a 419 page expired error."

Weirdly enough, I can't reproduce it on my local (full measure as well), I am getting it on production site only.

Laravel: 9.45.1
Statamic: 3.3.63
PHP 8.1
image
jakubjo commented 1 year ago

Sorry for the delay due to holidays -- I'll look into it. Do you have any notable specific configurations running on your production server?

elmanvebs commented 1 year ago

Sorry for the delay due to holidays -- I'll look into it. Do you have any notable specific configurations running on your production server?

No problem at all. Happy New Year! I don't think there are any specific configurations on the server. The only thing I can point out is that it's running on Forge Laravel.

jakubjo commented 1 year ago

Thanks! Happy New Year to you too!

The only thing I can point out is that it's running on Forge Laravel.

That's a great hint. I have the add on also running on several Forge based sites. Do you have a public link where I can observe the behavior? If you don't want to share the link publicly you can send it to me by email: jakub@jakub.io

jakubjo commented 1 year ago

@elmanvebs Could you provide me a public link where the issue occurs on your side?

elmanvebs commented 1 year ago

Hey @jakubjo ,

Sorry for the late response, sent an email to you just now.

jakubjo commented 1 year ago

Hi @elmanvebs I wanted to let you know that, unfortunately, I was unable to reproduce it last week. Although I've encountered the error on your project and there are some notable differences across browsers. I'll investigate further but unitl now there are no news to share.

elmanvebs commented 1 year ago

Hi @jakubjo ,

Got it, thanks for the update.