Skip to content

Commit

Permalink
disable cdn on worker
Browse files Browse the repository at this point in the history
  • Loading branch information
jemikanegara committed Dec 4, 2024
1 parent d95ad1d commit ae84ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/translation/getTranslationCacheFromCloudflare.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const getTranslationCacheFromCDN = require("./getTranslationCacheFromCDN");
const getTranslationCacheFromKV = require("./getTranslationCacheFromKV");

async function getTranslationCacheFromCloudflare(window, language, apiKey) {
if (!isCompressionSupported(window)) return {};
if (!isCompressionSupported(window) || window.isWorker) return {};
if (window?.cloudflareCache) return window?.cloudflareCache;

const isUsingKV = true;
Expand Down

0 comments on commit ae84ef0

Please sign in to comment.