I’m having some problems with a cached asset. It serves the latest version when I visit the URL in the browser, but I get an older version when I request it using AJAX.
I investigated a bit more and found that the problem seems to be with the ‘origin’ header. To illustrate this problem with CURL commands:
Serves the correct (latest) asset:
Serves an older version:
curl 'https://teclia.io/api/forms/2364bf04-a6ea-494c-a157-be06128b761a' -H 'origin: http://localhost:5000'
Notice the content of the first request is much smaller.
Maybe I missed some configuration in the page rules? Or is it a problem specific to ‘localhost’?
Thanks for your time!