Skip to content

Commit

Permalink
Force cache of API
Browse files Browse the repository at this point in the history
  • Loading branch information
maxatdetroit committed May 28, 2024
1 parent 7c88f72 commit 6be219b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Cal.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class Cal {
fetchPickups(info, successCb, failureCb, pickupType, routeNum, eventBuilder) {
const month = info.start.getMonth() + 1;
const wasteAPIEndpoint = buildWasteAPI(routeNum, info.start.getFullYear(), month);
fetch(wasteAPIEndpoint)
fetch(wasteAPIEndpoint, {'cache': 'force-cache'})
.then((res) => {
res.json().then((data) => {
const events = eventBuilder(data, pickupType);
Expand Down

0 comments on commit 6be219b

Please sign in to comment.