[squid-users] Squid Reverse Proxy and WebDAV caching

Amos Jeffries squid3 at treenet.co.nz
Thu Aug 24 22:58:47 UTC 2017


On 25/08/17 04:16, Olivier MARCHETTA wrote:
> Hello Squid Users,
> 
> I have configured a squid reverse proxy to access Microsoft SharePoint 
> Online with the aim of caching the document libraries into the squid 
> cache for a branch office.
> 
> But so far I can see the access log with the GET HTTP requests from the 
> users but none will be stored into the cache.
> 
> Now there are several difficulties to cache the documents:
> 
>  1. Microsoft is using SSL (but I have configured SSL bumps)
>  2. Files are tagged with the cache header no-cache or cache-private

'no-cache' actually means things *are* cacheable. Squid just has to 
perform a quick check with the server before using them. Your logs 
should contain REFRESH instead of HIT entries for these objects.

The 'private' objects are only usable for one client, so caching is not 
useful. Latest Squid can cache them by configuring refresh_pattern 
directive ignore-private. Then Squid will do the REFRESH for these as well.

Welcome to HTTP/1.1 where things can be neither HIT nor MISS. The 
REFRESH means a server was involved, but the object delivered to the 
client may be new or from cache and of vastly different size than the 
refresh objects on the server connection.

IMPORTANT: do not configure ignore-private and ignore-must-revalidate 
for the same objects. That will corrupt your proxies responses.


>  3. The WebDAV client is the Microsoft Windows 10 client.
> 
> Now I would like to know if it’s still doable or if I can just forget 
> having this kind of configuration on squid, and move on to an alternate 
> caching method (OneDrive sync client for example).
> 

If you have a current up-to-date Squid it is probably caching but 
absence of the classical "HIT" tag being confusing.

If you are actively seeing MISS in the logs for these objects then we 
will need the HTTP transaction headers to see what is going on. That can 
be retrieved with a debug_options 11,2 trace.


Amos


More information about the squid-users mailing list