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)
MIT License
154 stars 24 forks source link

add support for if-modified-since directive #54

Open a-luna opened 3 years ago

a-luna commented 3 years ago

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.