DEV: Remove cache option from ajax() (#13142)

1. It defaults to `cache: true` already
2. Setting it to `false` for non-GET request doesn't do anything
3. We were correcting `cache: false` GET requests to use `cache: true`

…so setting it to anything at all, for any type of request doesn't make sense (anymore)
This commit is contained in:
Jarek Radosz
2021-05-31 14:41:35 +02:00
committed by GitHub
parent ccbe3bea79
commit e06a206131
15 changed files with 23 additions and 44 deletions

View File

@@ -366,7 +366,7 @@ export default Component.extend({
},
_buildPayload(facets) {
let payload = { data: { cache: true, facets } };
let payload = { data: { facets } };
if (this.startDate) {
payload.data.start_date = moment(this.startDate)