views:

64

answers:

1

Apache HttpClient does not have caching as far as I can see so my question is do you know about a Http library that can cache to disk? It would be fun to implement it myself but before i do it, it is better to check if it already exists :-)

Requirements: Support for Http 1.1 Can cache to disk (ex: a folder) Support for a maximum cache size on disk Support for eTag

A: 

HTTPCache4j implements a client-side cache that claims to implement the features expected of a HTTP 1.1 client cache. It might be worth checking out despite being a new project.

Disk stores do not seem to be implemented using human readable files - they involve serialized copies of HTTP resources, but I might be wrong.

Vineet Reynolds