P3X GitList Demo v2026.4.274
GitHub
Repo
Changelog
To do
Releases
Themes
Language
Afrikaans
العربية
বাংলা
Català
Čeština
Dansk
Deutsch
Ελληνικά
English
Español
Suomi
Français
עברית
Magyar
Italiano
日本語
한국어
Nederlands
Norsk
Polski
Português
Română
Русский
Српски
Svenska
Türkçe
Українська
Tiếng Việt
中文
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
18d9f050c86d40ce7a8b963465e8e03cb3cd9869
Branches
dependabot/npm_and_yarn/multi-d54fdff7c2
dependabot/npm_and_yarn/nanoid-3.3.8
master
Files
Commits
Log
Graph
Stats
angular-http-cache-interceptor.git
src
app
common
default-component
default-component.component.html
RSS
Git
Fetch origin
Download
ZIP
TAR
Clone
Delete
Are you sure to delete this file?
Editor
Raw
Blame
History
HTML code
Clone
SSH
HTTPS
This file ( 1kB ) exceeds the allowed full mode (48 kb) size. The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height mode, although some users like it.
src/app/common/default-component/default-component.component.html
<div class="list-item-fix"> <button mat-flat-button color="primary" (click)="loadDefault()">Default request</button> <br/> <br/> <div class="mat-caption">Itt will try to load some random data, based on the default interceptor behavior without using headers.</div> </div> <br/> <mat-divider></mat-divider> <br/> <div class="list-item-fix"> <button mat-flat-button color="primary" (click)="loadCached()">Forced cached request</button> <br/> <br/> <div class="mat-caption">Itt will try to load some random data with cached data. You can see in the browser inspector network tab, that there will be only one request. Here, we use the <code>CachingHeaders.Cache</code> header.</div> </div> <br/> <mat-divider></mat-divider> <br/> <div class="list-item-fix"> <button mat-flat-button color="primary" (click)="loadNonCached()">Forced non-cached request</button> <br/> <br/> <div class="mat-caption">It will try to load some random data without cache. You can see in the browser inspector network tab, that every click will talk to a server and retrieve the new data. Here, we use the <code>CachingHeaders.NoCache</code> header.</div> </div>