Open onnimonni opened 7 years ago
This also happens to other requests which don't have any Expires
or Cache-Control
headers.
This is how I fixed it for now.
# HACK: Add default value for caching if $srcache_expire is not set
set_if_empty $srcache_expire '900';
@onnimonni Will you contribute a patch for this?
I will try to. Do you have links or recommendation for the development workflow? Nginx and c++ development isn't my strongest skill but with time I'm sure I can handle this and would be happy to contribute into this module.
@onnimonni You can check out the .travis.yml
file in the repo for an example of setting up the development environment for htis module. Also, the following book chapter can also be helpful when you use the test toolchain:
https://openresty.gitbooks.io/programming-openresty/content/testing/
Thanks!
Hey!
I have been trying srcache with redis for few weeks now and today I noticed that the cache keys are not expiring automatically.
I'm using this config in local docker environment:
Then I open redis-cli to monitor incoming requests:
And where I should see
10s
because of thesrcache_max_expire
directive or0
because of theCache-Control: no-store, no-cache, must-revalidate
header instead I see""
as sent to redis.Version: