From ce6f2c569c7e17ec0eb2e036898f409656296421 Mon Sep 17 00:00:00 2001 From: Marv Cool Date: Tue, 13 Jun 2017 00:53:56 +0200 Subject: [PATCH] fixes minor typo: missing space Hey guys, just read your guide online and noticed that. Kudos for having it on Github, so here's a simple fix. Cheers! --- src/topics/caching/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topics/caching/index.md b/src/topics/caching/index.md index 807f211..cf406f2 100644 --- a/src/topics/caching/index.md +++ b/src/topics/caching/index.md @@ -6,7 +6,7 @@ Baqend uses a combination of CDN and client caching using a Bloom filter-based d ### Caching everything, not just assets -The tricky thing when using such caches is that you must specify a cache lifetime (TTL) when you first deliver the data from the server. After that you do not have any chance to kick the data out. It will be served by the browser cache up to the moment the TTL expires. For static assets it is not such a complex thing, since they usually only change when you deploy a new version of your web application. Therefore, you can use cool tools like [gulp-rev-all](https://github.com/smysnk/gulp-rev-all) and[grunt-filerev](https://github.com/yeoman/grunt-filerev) to hash the assets. By renaming the assets at deployment time you ensure that all users will see the latest version of your page while using caches at their best +The tricky thing when using such caches is that you must specify a cache lifetime (TTL) when you first deliver the data from the server. After that you do not have any chance to kick the data out. It will be served by the browser cache up to the moment the TTL expires. For static assets it is not such a complex thing, since they usually only change when you deploy a new version of your web application. Therefore, you can use cool tools like [gulp-rev-all](https://github.com/smysnk/gulp-rev-all) and [grunt-filerev](https://github.com/yeoman/grunt-filerev) to hash the assets. By renaming the assets at deployment time you ensure that all users will see the latest version of your page while using caches at their best But wait! What do you do with all the data which is loaded and changed by your application at runtime? Changing user profiles, updating a post or adding a new comment are seemingly impossible to combine with the browsers cache, since you cannot estimate when such updates will happen in the future. Therefore, caching is just disabled or very low TTLs are used.