background preloader

Caching

Facebook Twitter

Caching JavaScript on Your Terms. Browsers tend to do what they like with your static content: deciding what to cache and when to refresh.

Caching JavaScript on Your Terms

On the server-side, you can specify that certain file types have a designated TTL (time to live) and that works in many cases. There are other cases when you either don't have access to the server's configuration or you need to make sure everyone has the latest bits of JavaScript. With every release of VizitSP, our SharePoint Document Viewer, we need to make sure that users get all of the changes we've made. To achieve this, there's a very easy trick that can keep our files cached exactly as long as they need to be and it involves le query string.

What the HTTP Caching Specification Says ThinkVitamin posted an article about the correct way to pull off browser caching while playing by the rules. According [to] the letter of the HTTP caching specification, user agents should never cache URLs with query strings. 1: sqlite> select request_key from cfurl_cache_response LIMIT 735,5; 2: 3: 4: 5:

Caching with Ruby on Rails. I wrote this for the Rails Guides project.

Caching with Ruby on Rails

Most updated version should always be at: Rails Guides. Comment on HN Everyone caches. This guide will teach you what you need to know about avoiding that expensive round-trip to your database and returning what you need to return to those hungry web clients in the shortest time possible. Basic Caching This is an introduction to the three types of caching techniques that Rails provides by default without the use of any third party plugins. To get started make sure config.action_controller.perform_caching is set to true for your environment. Config.action_controller.perform_caching = true Page Caching Page caching is a Rails mechanism which allows the request for a generated page to be fulfilled by the webserver, without ever having to go through the Rails stack at all.

So, how do you enable this super-fast cache behavior? Class ProductsController < ActionController caches_page :index def index; end end. Intro to Caching,Caching algorithms and caching frameworks part. A lot of us heard the word cache and when you ask them about caching they give you a perfect answer but they don’t know how it is built, or on which criteria I should favor this caching framework over that one and so on, in this article we are going to talk about Caching, Caching Algorithms and caching frameworks and which is better than the other.

Intro to Caching,Caching algorithms and caching frameworks part

The Interview: "Caching is a temp location where I store data in (data that I need it frequently) as the original data is expensive to be fetched, so I can retrieve it faster. " That what programmer 1 answered in the interview (one month ago he submitted his resume to a company who wanted a java programmer with a strong experience in caching and caching frameworks and extensive data manipulation) Interviewer: Nice and based on what criteria do you choose your caching solution? Programmer 1 :huh, (thinking for 5 minutes) , mmm based on, on , on the data (coughing…) Interviewer: excuse me! Programmer 1: data?! Programmer 1: capacity? What is Cache?