Skip to content

Commit 0bd1179

Browse files
authored
Merge pull request #273 from kchu93/MERC-9364
feat(merc): MERC-9364 Use CDN Original images for webdav - cache control
2 parents 8a3e815 + 4be70c5 commit 0bd1179

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

helpers/lib/cdnify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = globals => {
5656
}
5757

5858
if (protocol === 'webdav:') {
59-
return [cdnUrl, 'content', path].join('/');
59+
return [cdnUrl, 'images/stencil/original', 'content', path].join('/');
6060
}
6161

6262
if (cdnSettings) {

spec/helpers/cdn.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,15 @@ describe('cdn helper', function () {
198198
runTestCases([
199199
{
200200
input: '{{cdn "webdav:img/image.jpg"}}',
201-
output: 'https://cdn.bcapp/3dsf74g/content/img/image.jpg',
201+
output: 'https://cdn.bcapp/3dsf74g/images/stencil/original/content/img/image.jpg',
202202
},
203203
{
204204
input: '{{cdn "webdav:/img/image.jpg"}}',
205-
output: 'https://cdn.bcapp/3dsf74g/content/img/image.jpg',
205+
output: 'https://cdn.bcapp/3dsf74g/images/stencil/original/content/img/image.jpg',
206206
},
207207
{
208208
input: '{{cdn "webdav://img/image.jpg"}}',
209-
output: 'https://cdn.bcapp/3dsf74g/content/img/image.jpg',
209+
output: 'https://cdn.bcapp/3dsf74g/images/stencil/original/content/img/image.jpg',
210210
},
211211
], done);
212212
});

0 commit comments

Comments
 (0)