CDN not working properly?

Created on 24 April 2023, over 1 year ago
Updated 25 April 2023, over 1 year ago

Problem/Motivation

Files are always served from site and not from the CDN

Steps to reproduce

I setup CDN as follows:

Mode: Origin Pull
CDN Mapping: //static.food4rhino.com|.css .js .jpg .jpeg .png .gif
FarFuture Expiration (active):
Unique file identifier generation
misc/*:modules/*:themes/*|drupal_version
sites/*|mtime
sites/*|.avi .m4v .mov .mp4 .wmv .flv|perpetual

Finally, all seems to work, but the generated urls are like this:

//static.food4rhino.com/cdn/farfuture/wCSloEw5YbmACjMKoYLLlIO9gVyPRTfnWgjr3DcT7h4/mtime:1680615251/sites/default/files/public/styles/thumbnail/public/users-files/ekimroyrp/app/pflogo2.jpg?itok=foAxYKis

And then, if you visit you are always redirected to:

https://www.food4rhino.com/en/cdn/farfuture/wCSloEw5YbmACjMKoYLLlIO9gVyP...

So, it never gets the file from the CDN, it redirects to origin....

Some notes: i am using AWS CloudFront.

Any idea?

Regards,
Jordi
JOINSO

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇪🇸Spain JOINSO Sabadell

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024