Skip to content

Commit ec7d368

Browse files
committed
fix: correct indentation in HTTP headers for clarity
1 parent e868a90 commit ec7d368

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ export class AppComponent implements OnInit {
456456
// Note: all the "special" headers in NgHttpCachingHeaders are removed before send the request to the backend.
457457
this.http.get('https://my-json-server.typicode.com/typicode/demo/db', {
458458
headers: {
459-
[NgHttpCachingHeaders.DISALLOW_CACHE]: '1',
459+
[NgHttpCachingHeaders.DISALLOW_CACHE]: '1',
460460
}
461461
}).subscribe(e => console.log);
462462
}
@@ -486,7 +486,7 @@ export class AppComponent implements OnInit {
486486
// Note: all the "special" headers in NgHttpCachingHeaders are removed before send the request to the backend.
487487
this.http.get('https://my-json-server.typicode.com/typicode/demo/db', {
488488
headers: {
489-
[NgHttpCachingHeaders.LIFETIME]: (1000 * 60 * 60 * 24 * 365).toString(),
489+
[NgHttpCachingHeaders.LIFETIME]: (1000 * 60 * 60 * 24 * 365).toString(),
490490
}
491491
}).subscribe(e => console.log);
492492
}
@@ -516,7 +516,7 @@ export class AppComponent implements OnInit {
516516
// Note: all the "special" headers in NgHttpCachingHeaders are removed before send the request to the backend.
517517
this.http.get('https://my-json-server.typicode.com/typicode/demo/db', {
518518
headers: {
519-
[NgHttpCachingHeaders.ALLOW_CACHE]: '1',
519+
[NgHttpCachingHeaders.ALLOW_CACHE]: '1',
520520
}
521521
}).subscribe(e => console.log);
522522
}
@@ -620,15 +620,15 @@ export class AppComponent {
620620
// using NgHttpCachingService.clearCacheByTag("foo") for delete all the tagged request.
621621
this.http.get('https://my-json-server.typicode.com/typicode/demo/db?id=1', {
622622
headers: {
623-
[NgHttpCachingHeaders.TAG]: 'foo',
623+
[NgHttpCachingHeaders.TAG]: 'foo',
624624
}
625625
}).subscribe(e => console.log);
626626

627627
// This request is also tagged with "foo" keyword, and has another tag "baz".
628628
// You can add multiple tags comma separated.
629629
this.http.get('https://my-json-server.typicode.com/typicode/demo/db?id=2', {
630630
headers: {
631-
[NgHttpCachingHeaders.TAG]: 'foo,baz',
631+
[NgHttpCachingHeaders.TAG]: 'foo,baz',
632632
}
633633
}).subscribe(e => console.log);
634634
}

0 commit comments

Comments
 (0)