desbouis / nginx-redis-proxy

Nginx as reverse proxy using redis as cache engine
105 stars 29 forks source link

Manage an expiration date to cache data #10

Closed desbouis closed 12 years ago

desbouis commented 12 years ago

With the header "X-RedisCache-ttl", the backend can set a ttl to cache data in redis. It would be cool for the backend to set an exipration date in redis with an other custom header, "X-RedisCache-expireat" or "X-RedisCache-endtime" for instance.

desbouis commented 12 years ago

For now, I choose "X-RedisCache-expireat" as custom header name and the value is a timestamp. For instance : X-RedisCache-expireat: 1356994799