Giter Site home page Giter Site logo

jordanirabor / working_with_the_cache_api Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 5 KB

The Cache API provides a mechanism for storing network requests and retrieving their corresponding responses during run-time. This repository is associated with the article that introduces users to the Cache API and shows a few of its tricks.

JavaScript 100.00%

working_with_the_cache_api's Introduction

Working with the JavaScript Cache API

Introduction

The Cache API provides a mechanism for storing network requests and retrieving their corresponding responses during run-time. It can be used in the absence of an internet connection (or presence of a flaky one) and this makes it integral to the creation of Progressive Web Applications (web applications that work optimally offline like native applications).

Because it is impossible to predetermine your userbase at development time, it is important to build your web services so that they can be accessed by a broad spectrum of users who may not have the best hardware or are plagued with slow internet connections.

Usage

The Cache API is great at caching URL-addressable resources, that is, you should use the Cache API when you work with network resources that are necessary to load your application. These network resources may include file-based content, assets, API responses and web pages.

For the storage of significant amounts of structured data (including files/blobs) you ideally want to use the IndexedDB API.

This repository contains several code snippets that show us how to use the Cache API in our code.

working_with_the_cache_api's People

Contributors

jordanirabor avatar

Stargazers

Jasyn Marais avatar Đặng Quang Huy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.