a-luna / fastapi-redis-cache

A simple and robust caching solution for FastAPI that interprets request header values and creates proper response header values (powered by Redis)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add support for if-modified-since directive

a-luna opened this issue · comments

the project which led me to create this plugin doesn't serve any assets that make sense to validate with the last-mod time, (e.g., files) since the response data in my project is always retrieved from a database.

However, it would be pretty silly to assume that all websites are the same as mine, so supporting the if-modified-since directive is definitely required.