Based on your words, you do not invalidate cache anyways:
> When the next HTTP request comes in to view that object, I lookup the object's date in the shared dict. If the modified date is > now(), I set the bypass flag to 1, so nginx updates its cache.
I see it exact as stock behavior and asking what the difference Lua logic brings here.
> When the next HTTP request comes in to view that object, I lookup the object's date in the shared dict. If the modified date is > now(), I set the bypass flag to 1, so nginx updates its cache.
I see it exact as stock behavior and asking what the difference Lua logic brings here.