Problems with static sites
-
First, I’ve tried submitting this via your support system, the bot response is not helpful.
It would appear that there is an issue with static sites and I suspect this will also be an issue for sites that do heavy caching. It looks like the form embeds a “nonce” in the page which must match an active “nonce” on the server for the form to process.
So when you take a static copy of a page (or I guess cache it) then it’s nonce will be good for 24h. In my case, after this period, the form posting response is “sorry, there was a problem posting your form”. If you then regenerate your static page (or cache entry) thus generating a new “nonce”, you’ll get another 24 hour lease of life. This is a bit nasty as you can develop a site, deploy it, have it look like it’s working, only to find at some point in the future that 24h after deployment, it stoppled processing requests.
My current “hotfix” is to regenerate all my pages every 4h, thus regenerating the “nonce”. Although this seems to work, it’s a lot of processing I don’t want. What I’m essentially looking for is a way to disable the “nonce” function and instead rely on CORS and other protections.
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.