Welcome! Log In Create A New Profile

Advanced

Re: Re: How to set the minimum size of the cache file

Mirosław Jaworski
September 16, 2009 06:42AM
On Wed, 2009-09-16 at 17:56 +0800, Chancey wrote:
> 
> Back-end to provide search suggest services .
>
> Example:
>
> 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."
Subject Author Posted

How to set the minimum size of the cache file

Chancey September 16, 2009 01:16AM

Re: How to set the minimum size of the cache file

Igor Sysoev September 16, 2009 05:16AM

Re: How to set the minimum size of the cache file

Yahwist Yang April 13, 2010 05:24AM

Re: How to set the minimum size of the cache file

Ryan Malayter April 13, 2010 08:48AM

Re: How to set the minimum size of the cache file

Yahwist Yang April 14, 2010 07:06AM

Re: How to set the minimum size of the cache file

Ryan Malayter April 13, 2010 08:52AM

Re: Re: How to set the minimum size of the cache file

Chancey September 16, 2009 06:02AM

Re: Re: How to set the minimum size of the cache file

Mirosław Jaworski September 16, 2009 06:42AM

Re: Re: Re: How to set the minimum size of the cache file

Chancey September 16, 2009 10:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 189
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready