Building Touch Interfaces with HTML5: Speeding Up the Next Visit with Browser Cache, LocalStorage, and the Application Cache
- Mar 18, 2013
Caching is one of the most powerful tools for optimizing performance. It’s one of the basics that you really want to get right before you move on to more complex optimizations. In this chapter we covered the fundamentals of the browser cache and some simple optimization strategies. We discussed web storage and using it for caching data. Finally we talked about the application cache, which is powerful, if a bit finicky.
In the next chapter we’ll look at how to work around the overhead of page loads entirely with PJAX.
The complete APIs for web storage and the application cache are well covered on the Mozilla Developer Network: