Commit Graph

8 Commits

Author SHA1 Message Date
Daniel Hensby d6d220af5c NEW Adding debug helpers for skipping cache 2016-02-24 17:00:54 +00:00
Will Rossiter 9d65ac32d7 Merge pull request #29 from kevcenteno/master
Added cache headers for .html files
2016-01-18 15:44:10 +13:00
Will Rossiter 4504fd0900 GET parameters should fall through cache 2015-03-10 16:17:43 +13:00
Will Rossiter 52f04b7435 Add environment flags for managing publisher settings
SS_STATICPUBLISHER_ENABLED - Set in the environment file if static publisher enabled or disabled

SS_STATICPUBLISHER_CACHEDIR - Set the cache directory (if not /cache)

SS_STATICPUBLISHER_DEBUG - modify debug flag.
2015-03-07 00:22:14 +13:00
Kevin Centeno e2f4698402 Added cache headers for .html files
"This code snippet checks if a page has been modified since it was last displayed. If so, it sends a "304 not modified" header and exits, otherwise the content is rendered." source: http://css-tricks.com/snippets/php/intelligent-php-cache-control/

Adds Last-Modified, Etag (using md5; performance is still good for files under 1MB), and Cache-Control header.
2013-10-04 15:47:36 -04:00
Nick Spiel 5ff80cad6c Fixes BASE_URL php Notice. 2013-09-18 10:31:55 +10:00
Will Rossiter 841ecd9fe5 Rename static to staticpublisher. 2012-09-25 20:02:26 +12:00
Will Rossiter ba6e935177 Protect main.php 2012-09-21 19:48:50 +12:00