Expand my Community achievements bar.

SOLVED

Assets with renditions (thumbnails) are not available for download in dispatcher cache

Avatar

Former Community Member

Hi there.

We have the following scenario:

- Dispatcher instance, we're caching for performance + security.

- Publisher instance

Let's say we request an asset http://site/content/dam/assets/brochure.pdf, this will get cached in our dispatcher dir and will be available normally.

Now let's say we request an asset's thumbnail http://site/content/dam/assets/brochure.pdf/jcr\:content/dir/brochure.jpg, this also will be cached in our dispatcher, but the first pdf will no longer be available for us.

We don't know why this is happening, but any asset with thumbnail will create as a directory within our cache, not as a file; and will respond a 404 when requested as http://site/content/dam/assets/brochure.pdf

We've tried to delete dispatcher cache directory, but it refreshes the same way. Is there a way to debug this? Maybe within dispatcher configuration?

 Thanks!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Do not access rendition directly.  Please find below example on geometrixx how to get url for original file and rendition. In case you are not using dimension in rendition then need to customize thumbnail servlet accordingly.

[1]
http://<host>:<port>/content/dam/geometrixx/banners/techsummit.jpg
http://<host>:<port>/content/dam/geometrixx/banners/techsummit.jpg.thumb.319.319.png

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Do not access rendition directly.  Please find below example on geometrixx how to get url for original file and rendition. In case you are not using dimension in rendition then need to customize thumbnail servlet accordingly.

[1]
http://<host>:<port>/content/dam/geometrixx/banners/techsummit.jpg
http://<host>:<port>/content/dam/geometrixx/banners/techsummit.jpg.thumb.319.319.png