[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:
relation
is related to MAGNOLIA-2846 Easy configuration of different urima... Closed
is related to MAGNOLIA-2132 One Magnolia to rule them all Closed
is related to MAGNOLIA-2860 cache: the cache key should take para... Closed
is related to MAGNOLIA-3074 cache: the key should contain current... Closed
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.
The default is set to false, so nothing will change if the parameter is not esplicitely set in configuration.

Generated at Mon Feb 12 03:40:43 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.