Skip to content

Commit

Permalink
Merge pull request #343 from adobecom/MWPW-135361_forProd
Browse files Browse the repository at this point in the history
MWPW-135361 Gen Cache Update
  • Loading branch information
Blainegunn authored Aug 23, 2023
2 parents a7f2851 + 87ac2da commit b45cd08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion acrobat/blocks/dc-converter-widget/dc-converter-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ export default async function init(element) {
const isRedirection = /redirect_(?:conversion|files)=true/.test(window.location.search);
const preRenderDropZone = !isReturningUser && !isRedirection;
if (VERB === 'compress-pdf' || preRenderDropZone) {
const response = await fetch(DC_GENERATE_CACHE_URL || `${DC_DOMAIN}/dc-generate-cache/dc-hosted-${DC_GENERATE_CACHE_VERSION}/${VERB}-${pageLang}.html`);
const verbFromURL = window.location.pathname.split('/').pop().split('.')[0];
const response = await fetch(DC_GENERATE_CACHE_URL || `${DC_DOMAIN}/dc-generate-cache/dc-hosted-${DC_GENERATE_CACHE_VERSION}/${verbFromURL}-${pageLang}.html`);
switch (response.status) {
case 200: {
const template = await response.text();
Expand Down

0 comments on commit b45cd08

Please sign in to comment.