Added new cache middleware to use full host patch when building cache keys.