Skip to content

Instantly share code, notes, and snippets.

@ngclient
ngclient / keybase.md
Created September 11, 2019 10:28
keybase.md

Keybase proof

I hereby claim:

  • I am ngclient on github.
  • I am namnv (https://keybase.io/namnv) on keybase.
  • I have a public key ASBCHx224j_6-oAnMMz1O7JQym8unzxvfUYPoxC8BVrObgo

To claim this, I am signing this object:

@ngclient
ngclient / cache.interceptor
Last active September 5, 2019 18:40
http cache extensions
import { Injectable } from '@angular/core';
import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest, HttpResponse } from '@angular/common/http';
import { Observable, Subscriber } from 'rxjs';
import { HttpCacheService } from './http-cache.service';
/**
* Caches HTTP requests.
* Use ExtendedHttpClient fluent API to configure caching for each request.
*/