-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable cache and remove any server side logic. (#48)
- Loading branch information
Showing
10 changed files
with
35 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { HttpInterceptorFn } from "@angular/common/http"; | ||
|
||
export const cacheInterceptor: HttpInterceptorFn = (req, next) => { | ||
req = req.clone({ | ||
headers: req.headers.set('Cache-Control', 'no-store, no-cache, must-revalidate'), | ||
}); | ||
|
||
return next(req) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<system.webServer> | ||
<!-- Static content compression and caching --> | ||
<staticContent> | ||
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" /> | ||
</staticContent> | ||
</system.webServer> | ||
|
||
<system.webServer> | ||
<rewrite> | ||
<rules> | ||
<rule name="Angular Routes" stopProcessing="true"> | ||
<match url=".*" /> | ||
<conditions logicalGrouping="MatchAll"> | ||
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | ||
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> | ||
</conditions> | ||
<action type="Rewrite" url="./index.html" /> | ||
</rule> | ||
</rules> | ||
</rewrite> | ||
</system.webServer> | ||
|
||
</configuration> |