[squid-users] Caching an application/json file

From: DjinnS <djinns_at_chninkel.net>
Date: Fri, 10 Sep 2010 11:44:03 +0200

Bonjour,

I have a problem with a json file. It isn't cached by Squid.

Here is the headers send by Apache. A added additionnal expire
configuration for caching

HTTP/1.0 200 OK
Date: Thu, 09 Sep 2010 16:40:27 GMT
Server: Apache
Set-Cookie: symfony=c648e78b160e6ed7b196a85377e53e3a; path=/
Content-Length: 163979
Cache-Control: max-age=600
Content-Type: application/json
X-Cache: MISS from cache-01
X-Cache-Lookup: MISS from cache-01:80
Connection: close

(The json file is generated by an application using Symfony ...)

Why, in spite of Cache-Control header, Squid doesn't cache the file ?

Here the cache policy:

### object size in cache
maximum_object_size_in_memory 4096 KB
minimum_object_size 0 KB
maximum_object_size 32800 KB
minimum_expiry_time 30 seconds

### cache replacement policy
cache_replacement_policy heap LFUDA
memory_replacement_policy heap LFUDA

Thank you in advance.

--
DjinnS
Received on Fri Sep 10 2010 - 09:44:11 MDT

This archive was generated by hypermail 2.2.0 : Fri Sep 10 2010 - 12:00:04 MDT