From 90c25d8b3d7fa5ab97e8a4db53c1c5c25cad4d6b Mon Sep 17 00:00:00 2001 From: shoully Date: Sat, 20 Dec 2014 06:37:05 -0800 Subject: [PATCH] Updated 13 HTTP Caching (markdown) --- 13 HTTP Caching.md => 12 HTTP Caching.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename 13 HTTP Caching.md => 12 HTTP Caching.md (96%) diff --git a/13 HTTP Caching.md b/12 HTTP Caching.md similarity index 96% rename from 13 HTTP Caching.md rename to 12 HTTP Caching.md index a3f2367..460866c 100644 --- a/13 HTTP Caching.md +++ b/12 HTTP Caching.md @@ -2,7 +2,7 @@ Flight provides built-in support for HTTP level caching. If the caching conditio Flight will return an HTTP `304 Not Modified` response. The next time the client requests the same resource, they will be prompted to use their locally cached version. -## Last-Modified +### Last-Modified You can use the `lastModified` method and pass in a UNIX timestamp to set the date and time a page was last modified. The client will continue to use their cache until the last modified value is changed. @@ -12,7 +12,7 @@ The client will continue to use their cache until the last modified value is cha echo 'This content will be cached.'; }); -## ETag +### ETag ETag caching is similar to Last-Modified, except you can specify any id you want for the resource: