Re: Re: Re: How to set the minimum size of the cache file
chanceycn at gmail.com
Wed Sep 16 17:53:03 MSD 2009
It's a good idea, I have set it successful.
Thank you very much!
发件人： Mirosław Jaworski
发送时间： 2009-09-16 18:41:17
主题： Re: Re: How to set the minimum size of the cache file
On Wed, 2009-09-16 at 17:56 +0800, Chancey wrote:
> Back-end to provide search suggest services .
> Two request url:
> a . http://xxx/a?q=a
> b . http://xxx/a?q=b
> Response results :
> a. xxxxxxxxxx
> b. null
> The results of a need to be cached , b don't need.
You can run nginx without caching enforcement ( don't use
proxy_cache_valid ) and modify(*) "search suggest service" so it will
return headers allowing caching for responses other that null.
(*) very likely modification is adding single line of code setting
"Expire:" header before returning result.
Mirosław "Psyborg" Jaworski
GCS/IT d- s+:+ a C++$ UBI++++$ P+++$ L- E--- W++(+++)$ N++ o+ K- w-- O-
M- V- PS+ PE++ Y+ PGP t 5? X+ R++ !tv b++(+++) DI++ D+ G e* h++ r+++ y?
"Never let your sense of morals get in the way of doing what's right."
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx