From 2286587c41d1033c3b15cb3c5fca58a5f0018a52 Mon Sep 17 00:00:00 2001 From: Sebastian Benz Date: Mon, 4 Feb 2019 16:29:15 +0100 Subject: [PATCH] implement caching strategy (#1366) --- boilerplate/templates/index.html | 2 +- platform/lib/platform.js | 4 ++ platform/lib/utils/CachingStrategy.js | 66 +++++++++++++++++++++++++++ platform/lib/utils/cacheHelpers.js | 49 ++++++++++++++++++++ playground/backend/api.js | 3 ++ playground/backend/index.js | 13 +++++- 6 files changed, 135 insertions(+), 2 deletions(-) create mode 100644 platform/lib/utils/CachingStrategy.js create mode 100644 platform/lib/utils/cacheHelpers.js diff --git a/boilerplate/templates/index.html b/boilerplate/templates/index.html index a7d2c81fd54..ea9b6208de6 100644 --- a/boilerplate/templates/index.html +++ b/boilerplate/templates/index.html @@ -65,7 +65,7 @@ {{> 'amp-stories.svg' }} {{> 'amp-websites.svg' }} {{> 'amp-ads.svg' }} - {{> 'amp-emails.svg' }} + {{> 'amp-email.svg' }}