darkweak / souin

An HTTP cache system, RFC compliant, compatible with @tyktechnologies, @traefik, @caddyserver, @go-chi, @bnkamalesh, @beego, @devfeel, @labstack, @gofiber, @go-goyave, @go-kratos, @gin-gonic, @roadrunner-server, @zalando, @zeromicro, @nginx and @apache

Home Page:https://docs.souin.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Souin doesn't cache conditional request after cache miss

K0tBegemot opened this issue · comments

When using version 1.6.47, if browser or another tool send conditional request with If-None-Match header then souin request original (upstream) server on every request. In this case, the entry is not added to the cache. After the usual request (non conditional), entry is added to the cache and no further requests are sent to the original(upstream) server (if you make extra conditional requests). After that, I checked the Nginx cache behavior in this case. After receiving the first request, the response was cached successfully and no more requests were made (After receiving additional requests)(Within the ttl time of course). This looks like a bug to me. Any ideas?