On 13/05/2014 11:05 p.m., Julius Thomas wrote:
> Hi Amos,
>
> thanks for your answer.
> This are the full reply headers.
>
Okay. For caching the server needs to produce at least a Date: header
with current timestamp of when its responding. And a Last-Modified
header with timestamp the object was created/modified or at least the
same detail as Date. Squid refresh_pattern needs those to estimate
future freshness duration for caching.
The alternative is to provide an Expires: header.
Responses using "no-cache" must provide the above and should also
provide an ETag header to improve revalidation accuracy.
Note that "no-cache" in HTTP/1.1 is equivalent to "must-revalidate". So
Squid-3.2 and later will query with an If-Modified-Since/If-Not-Modified
revalidation on every client request. This should not be confused with
not caching.
> Squid is acting as an reverse proxy.
> i cant change the reply headers from the origin server.
Then that result is not cacheable with the current Squid releases.
>
> cache_peer *.*.*.* parent 80 0 sourcehash no-digest name=test1 weight=3
> cache_peer *.*.*.* parent 80 0 sourcehash no-digest name=test2 weight=2
>
Those should also have originserver options set I think.
Amos
> Regards
>
> julius
>
>
> Am 13.05.2014 13:01, schrieb Amos Jeffries:
>> On 13/05/2014 7:35 a.m., Julius Thomas wrote:
>>>> Dear Squid Developers,
>>>>> we are using squid 3.4.2.'--enable-http-violations'
>>>>> I can't cache a xml file with this headers:
>>>>> Cache-Control |no-cache|
>>>>> Connection |Keep-Alive|
>>>>> Content-Length |168|
>>>>> Content-Type ||
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> I tried different things, different configs, googled, but i cant get the answer:
>>>>> refresh_pattern -i \.crossdomain.(xml)$ 10080 90% 43200 override-expire
>>>>> ignore-no-cache ignore-no-store ignore-private
>>>>>
>> Hi Julius,
>> Is that the full set of reply headers?
>>
>> What are the request headers used?
>>
>> How is this traffic arriving into Squid? (forward-proxy, reverse-proxy
>> or intercepted)
>>
>> Because there is no Date nor Last-Modified headers in there to tell
>> Squid how long
>>
>> NP: ignore-no-cache is meaningless configuration option in squid 3.4.
>>
>>
>> Amos
>>
>
> --
> *Julius Thomas*
> Geschäftsführer
>
> 3q_logo_small
>
> 3Q Medien GmbH
> Wetzlarer Str. 86
> D-14482 Potsdam
> Fon +49 (0)331 / 27 97 866 - 6
> Fax +49 (0)331 / 27 97 866 - 1
>
> www.3qsdn.com
> Vertrieb: sales_at_3qsdn.com
>
>
> Hauptsitz der Gesellschaft: Siemensstr. 3, 84478 Waldkraiburg
> Vertretungsberechtigte Geschäftsführer: Holm Krämer, Julius Thomas
> Registergericht: Handelsregister Traunstein, HRB 19129
>
> Diese E-Mail und eventuelle Anlagen können vertrauliche und/oder rechtlich
> geschützte Informationen enthalten. Wenn Sie
> nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben,
> informieren Sie bitte sofort den Absender und
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> Weitergabe dieser Mail sind nicht gestattet.
>
> Sie können der Nutzung Ihrer Daten widersprechen. Wenn Sie zukünftig keine
> Informationen mehr zu interessanten
> Leistungen von 3Q Medien GmbH erhalten möchten, teilen Sie dies bitte an oben
> genannte Adresse mit.
>
Received on Tue May 13 2014 - 16:13:06 MDT
This archive was generated by hypermail 2.2.0 : Tue May 13 2014 - 12:00:13 MDT