ng-http-caching 13.0.5 → 13.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -262,7 +262,7 @@ If you have choose the `DISALLOW_ALL` cache strategy, you can mark specific requ
|
|
|
262
262
|
```ts
|
|
263
263
|
this.http.get('https://my-json-server.typicode.com/typicode/demo/db', {
|
|
264
264
|
headers: {
|
|
265
|
-
[NgHttpCachingHeaders.
|
|
265
|
+
[NgHttpCachingHeaders.ALLOW_CACHE]: '1',
|
|
266
266
|
}
|
|
267
267
|
}).subscribe(e => console.log);
|
|
268
268
|
```
|
|
@@ -491,7 +491,7 @@ export class AppComponent implements OnInit {
|
|
|
491
491
|
// Note: all the "special" headers in NgHttpCachingHeaders are removed before send the request to the backend.
|
|
492
492
|
this.http.get('https://my-json-server.typicode.com/typicode/demo/db', {
|
|
493
493
|
headers: {
|
|
494
|
-
[NgHttpCachingHeaders.
|
|
494
|
+
[NgHttpCachingHeaders.ALLOW_CACHE]: '1',
|
|
495
495
|
}
|
|
496
496
|
}).subscribe(e => console.log);
|
|
497
497
|
}
|