Files are always served from site and not from the CDN
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
Closed: works as designed
2.0
Code