Skip to content

Commit

Permalink
fix(javascript): cache on POST read request (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv committed May 31, 2022
1 parent 5fcadcf commit d62318b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ export function createTransporter({
},
};

if (request.method !== 'GET') {
const isRead = request.useReadTransporter || request.method === 'GET';

if (!isRead) {
/**
* On write requests, no cache mechanisms are applied, and we
* proxy the request immediately to the requester.
Expand Down

0 comments on commit d62318b

Please sign in to comment.