You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have following configuration. We have an F3 application that have pseudo-CDN feature under /cdn/*. We have added a redirection in .htaccess from /cdn/* to cdn.domain.com/*. It results in different cache prefixes and keys added in main domain cannot be found in subdomain. And it does not work because of the following line.
A good example, one of our keys is avatar.user.60.90x90
Cache prefix is $this->prefix . $key;
In cdn.domain.com : $this->prefix = 'h6qqa2jvtoez';
In domain.com : $this->prefix = '3awbd3dh8n400';
Cache $prefix should be configurable and should not be hardcoded.
The text was updated successfully, but these errors were encountered:
ikkez
changed the title
Hardcoded cache $prefix makes impossible to find key with a subodmain redirection
Hardcoded cache $prefix makes it impossible to find keys from different hosts
Aug 6, 2016
Hello,
We have following configuration. We have an F3 application that have pseudo-CDN feature under
/cdn/*
. We have added a redirection in.htaccess
from/cdn/*
tocdn.domain.com/*
. It results in different cache prefixes and keys added in main domain cannot be found in subdomain. And it does not work because of the following line.https://github.com/bcosca/fatfree-core/blob/64976a57729024657cd7ee4cc01ea7f74d5b0e43/base.php#L2462
A good example, one of our keys is
avatar.user.60.90x90
Cache prefix is
$this->prefix . $key;
In
cdn.domain.com
:$this->prefix = 'h6qqa2jvtoez'
;In
domain.com
:$this->prefix = '3awbd3dh8n400'
;Cache
$prefix
should be configurable and should not be hardcoded.The text was updated successfully, but these errors were encountered: