Skip to content

Commit 884fb69

Browse files
Don't use date in near future for If-Modifies-Since header
Use "Expires" header instead. See: https://stackoverflow.com/a/44561162/463890
1 parent 3cc49fc commit 884fb69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/abpHttp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ export class AbpHttp extends Http {
274274

275275
options.headers.append("Pragma","no-cache");
276276
options.headers.append("Cache-Control","no-cache");
277-
options.headers.append("If-Modified-Since", "Wed, 21 Oct 2020 07:28:00 GMT");
278-
277+
options.headers.append("Expires", "Sat, 01 Jan 2000 00:00:00 GMT");
278+
279279
this.addXRequestedWithHeader(options);
280280
this.addAuthorizationHeaders(options);
281281
this.addAspNetCoreCultureHeader(options);

0 commit comments

Comments
 (0)