-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Clear the entire
Develry.Request.cache
as soon as a non-GET reque…
…st is made
- Loading branch information
Showing
3 changed files
with
11 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -456,7 +456,7 @@ Request.setMethod(function setHeader(name, value) { | |
* | ||
* @author Jelle De Loecker <[email protected]> | ||
* @since 0.2.0 | ||
* @version 0.8.15 | ||
* @version 0.9.2 | ||
* | ||
* @return {Pledge} | ||
*/ | ||
|
@@ -507,6 +507,11 @@ Request.setMethod(function start() { | |
} | ||
} | ||
|
||
// If it is not a GET, clear the entire cache | ||
if (this.method != 'GET') { | ||
Request.cache.clear(); | ||
} | ||
|
||
// Do the response, follow redirects | ||
pledge = this[MAKE_REQUEST](key); | ||
|
||
|
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,7 +1,7 @@ | ||
{ | ||
"name": "protoblast", | ||
"description": "Native object expansion library", | ||
"version": "0.9.1", | ||
"version": "0.9.2-alpha", | ||
"author": "Jelle De Loecker <[email protected]>", | ||
"keywords": [ | ||
"prototype", | ||
|