I have a legacy system that still serves customers and needs to be behind a fastly cache. However, our new system needs to stay in sync with our legacy system, so we make updates via the rest api. However, since fastly caches the results, this can cause our synchronization to start getting bad data.
I know it's possible to run a PURGE against the endpoint, and that seems to work a lot of the time, but not always (I'm not sure if our fastly servers are behind a load balancer. seems weird to me, but I'm not really a fastly person, so ¯\_(ツ)_/¯
).
So. My question is, does anyone know if there is some sort of header I can send along with the request to force fastly to get me the latest info? I've tried Cache-Control: no-cache
and no-store
, however, these are not working.
If there is a setting on fastly itself to make it so these do work, that might be a solution, but our system folks are under high load and it can take a while for me to get things like this done sometimes. if I can provide them with the answer ahead of time, it might help.