@carto/ps-react-maps 3.11.8 → 3.11.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -2862,18 +2862,19 @@ const Ee = ft()(fs((r, e) => ({
|
|
|
2862
2862
|
};
|
|
2863
2863
|
}, void 0, "removeFilters"),
|
|
2864
2864
|
invalidateSourcesCache: (t, {
|
|
2865
|
-
timeout: s = 500
|
|
2865
|
+
timeout: s = 500,
|
|
2866
|
+
maxAge: n = 10
|
|
2866
2867
|
} = {}) => {
|
|
2867
|
-
t.forEach((
|
|
2868
|
-
e().setSource(
|
|
2868
|
+
t.forEach((o) => {
|
|
2869
|
+
e().setSource(o, {
|
|
2869
2870
|
headers: {
|
|
2870
|
-
"Cache-Control":
|
|
2871
|
+
"Cache-Control": `no-cache, max-age=${n}`
|
|
2871
2872
|
}
|
|
2872
2873
|
});
|
|
2873
2874
|
}), setTimeout(() => {
|
|
2874
|
-
t.forEach((
|
|
2875
|
-
const
|
|
2876
|
-
|
|
2875
|
+
t.forEach((o) => {
|
|
2876
|
+
const i = e().sources[o];
|
|
2877
|
+
i && (delete i.headers, e().setSource(o, i));
|
|
2877
2878
|
});
|
|
2878
2879
|
}, s);
|
|
2879
2880
|
}
|