Search squid archive

Re: Caching based on header/etag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you have access to the apache server it's very simple to remove the
headers.

I do have a question about the docs:
http://www.squid-cache.org/Versions/v3/3.4/cfgman/reply_header_access.html

Will the reply_header_access will affect the stored cache object?
If so or not what suppose to happen?

Thanks,
Eliezer

On 05/20/2014 07:51 PM, Amos Jeffries wrote:
> On 21/05/2014 3:43 a.m., Tom Holder wrote:
>> Hi all,
>> 
>> I've setup squid to proxy everything to a single server I have.
>> 
>> Based on a header, I might want to serve a different version of a
>> file for example for:
>> 
>> X-MY-HEADER: 1 URL: /css/style.css
>> 
>> Would not be the same as:
>> 
>> X-MY-HEADER: 2 URL: /css/style.css
>> 
>> Ideally though I'd like to be able to cache both.
>> 
>> Can I get squid to somehow differentiate based on an incoming
>> header?
>> 
>> Failing that, I'm generating an etag on the server that's a hash
>> of the content. Will this be enough to distinguish between the
>> different files?
> 
> Not by itself. ETag is used to confirm correct variant is being 
> revalidated or fetched once one is chosen.
> 
> You need the server to emit "Vary: X-MY-HEADER" on all responses
> to enable Squid to perform the initial selection.
> 
> Between them Vary, ETag and Last-Modified permit Squid to target a 
> specific object variant inside the set of possible responses to
> any dynamic resource URL.
> 
> Amos
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJUiaQ9AAoJENxnfXtQ8ZQUHqwH/19gKkhG5zKlT7dndqUTZs/7
27Iv1kzzh1XU+nt6sVkhDZIaVztbEMuaG8GjIGWpCnEmBaqqXF6yqvrDBvZeZwfz
kbIiVKR+WTOxHWxURdnYq+wfEtqbIIQt08PrrlDGPJw7qnYc9mBR+d8XwYj+DK3R
ku6gBezLhJG+LDQdTXaIFhScJa+yWi3DqRZrbyG76kbG/1FnYJjVcchy5bjfHRwq
idbAbYHjYn1AFCyYlETRO/Mgs53t7nbsSJ7WXM4gHiwzJ5xvy1KvGZpBuGgM9mKx
KIif5MGexhGm1a5GrV0SOb5FFpSgWX21rrC3EkEG2MKKrCI10U6hig0aAiM4exg=
=6a6c
-----END PGP SIGNATURE-----
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users





[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux