Skip to content

Commit

Permalink
Merge pull request adobecom#344 from adobecom/revert-343-MWPW-135361_…
Browse files Browse the repository at this point in the history
…forProd

Revert "MWPW-135361 Gen Cache Update"
  • Loading branch information
Blainegunn authored Aug 23, 2023
2 parents b45cd08 + 5104ca0 commit ac10462
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions acrobat/blocks/dc-converter-widget/dc-converter-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@ 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 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`);
const response = await fetch(DC_GENERATE_CACHE_URL || `${DC_DOMAIN}/dc-generate-cache/dc-hosted-${DC_GENERATE_CACHE_VERSION}/${VERB}-${pageLang}.html`);
switch (response.status) {
case 200: {
const template = await response.text();
Expand Down

0 comments on commit ac10462

Please sign in to comment.