Get uncompressed data. The call may be expensive, result is cached (in uncompressedData).
Return last modified time. Used for Last-Modified and If-Modified-Since headers. Called when cached data is invalidated; return value is cached. Returns current (invalidation) time by default.
Used by application code.
Clear cached uncompressed and compressed data. An alternative to calling invalidate() from a subclass is to simply create a new class instance when data becomes stale (overhead is negligible).
Called every time a request is done. Can be used to check if cached data expired, and invalidate() it. By default is a no-op.
Caching policy. To be set during subclass construction.
Zlib compression level
MIME content type. To be set during subclass construction.
Abstract class for caching resources in memory. Stores compressed version as well.