[MAGNOLIA-2849] Cache: cache keys based on host names, not only original uri Created: 18/Aug/09 Updated: 23/Jan/13 Resolved: 19/Aug/09 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.1 |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Fabrizio Giustina | Assignee: | Fabrizio Giustina |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Template: |
|
||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||||||||||
| Description |
|
If multiple hosts are mapped to the same magnolia instance you may need to have different cache entries for the same url but different hosts. Cache uses only the original uri for cache keys, so if you map the default uri to different pages depending on the host, you will end up with the same content cached and served for any host. In this situation we should allow to use also the request host name for the cache key. |
| Comments |
| Comment by Fabrizio Giustina [ 19/Aug/09 ] |
|
Added a "multiplehosts" parameter to the default cache policy implementation. |