I posted this on stackoverflow already but I thought I might have more
luck
here
In short, I can’t find a way to make nginx revalidate a cached resource
with the origin. Whenever nginx is in front of my server, the origine
never
returns a 304. Nginx just gets a new copy whenever it expires, and I
can’t
trigger a revalidate either. I’ve tried different approaches with
cache-control headers but nginx doesn’t seem to respect them.
I posted this on stackoverflow already but I thought I might have more luck here
In short, I can’t find a way to make nginx revalidate a cached resource with the
origin. Whenever nginx is in front of my server, the origine never returns a 304.
Nginx just gets a new copy whenever it expires, and I can’t trigger a revalidate
either. I’ve tried different approaches with cache-control headers but nginx
doesn’t seem to respect them.