On Wed, Jul 16, 2014 at 6:11 PM, Baptiste <[email protected]> wrote:
> On Wed, Jul 16, 2014 at 5:56 PM, JDzialo John <[email protected]> wrote:
>>
>> Hi Everyone,
>>
>>
>>
>> I am implementing a cache control policy on all our web servers and was 
>> curious if anyone ever uses haproxy to handle cache control.
>>
>>
>>
>> On IIS we are using Etags, Last-Modified and Cache Control maxage to force 
>> client browsers to check the etag hash.  If the etag value has changed get 
>> the file as normal if it has not changed give a 304 response to the browser 
>> to inform it to use its cached file since it has not changed.
>>
>>
>>
>> Now to haproxy...
>>
>>
>>
>> 1.       Is there a documented way to read headers and manage the cache on 
>> the proxy side to give a 304 response to client browsers and avoid 
>> unnecessary calls to our backend web servers?
>>
>>
>>
>> I'm looking for some very general guidance as to what haproxy offers to help 
>> manage our file cache.
>>
>>
>>
>> Thanks
>>
>>
>>
>>
>>
>> John Dzialo | Linux System Administrator
>>
>> Direct 203.783.8163 | Main 800.352.0050
>>
>>
>>
>> Environmental Data Resources, Inc.
>>
>> 440 Wheelers Farms Road, Milford, CT 06461
>>
>> www.edrnet.com | commonground.edrnet.com
>>
>>
>>
>>
>
>
> Hi John,
>
> There is no way to achieve what you're describing.
> You could use Varnish as a reverse proxy cache for this purpose.
>
> Baptiste


I forgot a link:
http://blog.haproxy.com/2012/08/25/haproxy-varnish-and-the-single-hostname-website/

Baptiste

Reply via email to