Rss-Bridge/lib
LogMANOriginal 7b261d1cc2
[contents] Add server side caching for all requests (If-Modified-Since) (#889)
This commit adds a cache for 'getContents' to '/cache/server'. All
contents are cached by default (even in debug mode). If debug mode
is enabled, the cached data is overwritten on each request.

In normal mode RSS-Bridge adds the 'If-Modified-Since' header with
the timestamp from the previously cached data (if available) to the
request.

Find more information on 'If-Modified-Since' here:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since

If the server responds with "304 Not Modified", the cached data is
returned.

If the server responds with "200 OK", the received data is written
to the cache (creates a new cache file if it doesn't exist yet).

No changes were made for all other response codes.

Servers that don't support the 'If-Modified-Since' header, will
respond with "200 OK".

For servers that respond with "304 Not Modified", the required band-
width will decrease and RSS-Bridge will responding faster.

Files in the cache are forcefully removed after 24 hours.

Notice: Only few servers actually do support 'If-Modified-Since'.
Thus, most bridges won't be affected by this change.
2018-11-19 17:53:08 +01:00
..
Authentication.php [Authentication] Throw exception creating objects from this class 2018-11-18 15:20:43 +01:00
Bridge.php bridge: Rename listBridge to getBridgeNames 2018-11-15 19:43:23 +01:00
BridgeAbstract.php lib: Add API documentation 2018-11-18 09:41:14 +01:00
BridgeCard.php [BridgeCard] Use self:: instead of BridgeCard:: 2018-11-18 16:59:13 +01:00
BridgeInterface.php lib: Add API documentation 2018-11-18 09:41:14 +01:00
BridgeList.php lib: Add API documentation 2018-11-18 09:41:14 +01:00
Cache.php [Cache] Check if class is instantiable 2018-11-15 19:36:01 +01:00
CacheInterface.php lib: Add API documentation 2018-11-18 09:41:14 +01:00
Configuration.php [Configuration] Change scope of $config to private 2018-11-18 15:58:34 +01:00
contents.php [contents] Add server side caching for all requests (If-Modified-Since) (#889) 2018-11-19 17:53:08 +01:00
Debug.php [Debug] Fix debug mode reports indexing error 2018-11-16 20:19:52 +01:00
error.php exception: Remove HttpException class 2018-11-18 16:53:21 +01:00
Exceptions.php exception: Remove HttpException class 2018-11-18 16:53:21 +01:00
FeedExpander.php [FeedExpander] Add constants for feed types 2018-11-18 16:18:40 +01:00
Format.php format: Refactor searchInformation 2018-11-15 20:16:21 +01:00
FormatAbstract.php [FormatAbstract] Check content type before sending header 2018-11-18 16:30:34 +01:00
FormatInterface.php lib: Add API documentation 2018-11-18 09:41:14 +01:00
html.php [html] Remove todo as it is already implemented 2018-11-18 17:52:45 +01:00
ParameterValidator.php lib: Add API documentation 2018-11-18 09:41:14 +01:00
rssbridge.php [rssbridge] Improve documentation 2018-11-15 20:52:17 +01:00