mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Removed final reference to forceBypassCache param.
This commit is contained in:
@@ -145,13 +145,9 @@ export class RequestService {
|
||||
* Configure a certain request
|
||||
* Used to make sure a request is in the cache
|
||||
* @param {RestRequest} request The request to send out
|
||||
* @param {boolean} forceBypassCache When true, a new request is always dispatched
|
||||
*/
|
||||
configure<T extends CacheableObject>(request: RestRequest): void {
|
||||
const isGetRequest = request.method === RestRequestMethod.GET;
|
||||
// if (forceBypassCache) {
|
||||
// this.clearRequestsOnTheirWayToTheStore(request);
|
||||
// }
|
||||
if (!isGetRequest || !this.isCachedOrPending(request)) {
|
||||
this.dispatchRequest(request);
|
||||
if (isGetRequest) {
|
||||
|
Reference in New Issue
Block a user