cache middleware should vary on full URL
|Reported by:||jamey||Owned by:|
|Component:||Core (Cache system)||Version:||master|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
Standard HTTP cache behavior treats different URLs as different resources, but Django's cache middleware only generates cache keys based on
I believe that
django.utils.cache._generate_cache_[header_]key should use
request.build_absolute_uri() instead of
request.get_full_path() so different hosts and schemes will get different cache entries.
I'm using Django 1.3 but as far as I can tell this hasn't changed as of today's git master.
Change History (11)
comment:8 Changed 4 years ago by
|Patch needs improvement:||set|
|Version:||1.3 → master|