Stale Autocomplete Nonce
- inclindParticipant2 months ago #53347
With the autocomplete/suggestions search, it seems like a nonce is being generated during page load and stored in the markup.
Example:<input type="hidden" id="wpsolr_autocomplete_nonce" value="88af705964">
If the page’s markup is cached for more than 24 hours, that value seemingly becomes invalid, and I’m seeing no visible behavior in the search box and an error returned in the dev console.
Error:Uncaught SyntaxError: Unexpected end of JSON input
If I manually replace the nonce with a fresh value in the markup, the search then functions.Is there a configuration option or some other approach that would allow this to function but also be able to cache pages for >24h?
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.