Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bypass Cache if client sets max-age=0 #4

Open
IainBapty opened this issue Oct 24, 2011 · 3 comments
Open

Bypass Cache if client sets max-age=0 #4

IainBapty opened this issue Oct 24, 2011 · 3 comments

Comments

@IainBapty
Copy link

It doesn't look like there is currently a way to invalidate the in-memory cache if the client has requested the latest value. If the client needs the very latest value then there is no way to force the request down to the handler.

Perhaps if the client sets:

Cache-Control:max-age=0

or

Cache-Control:no-cache

then CachingInterceptor should skip TryGetValidCacheEntry. What do you think?

@serialseb
Copy link
Member

Absolutely correct, although the no-cache and the max-age should take two different code paths. This stuff is kind of already implemented in a separate branch i ought to push back into master. Nag me tomorrow to make sure I do it :)

@IainBapty
Copy link
Author

Thanks Seb, any chance of that push?

@IainBapty IainBapty reopened this Oct 27, 2011
@serialseb
Copy link
Member

Sorry i was off sick. Will try and make a push tonight, but it's more likely that it'll be tomorrow during the day.

Seb


From: IainBapty [[email protected]]
Sent: 27 October 2011 16:17
To: Sebastien Lambla
Subject: Re: [openrasta-caching] Bypass Cache if client sets max-age=0 (#4)

Thanks Seb, any chance of that push?

Reply to this email directly or view it on GitHub:
#4 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants