Changeset 6434
- Timestamp:
- 09/28/07 17:30:59 (1 year ago)
- Files:
-
- django/trunk/AUTHORS (modified) (1 diff)
- django/trunk/django/utils/cache.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/AUTHORS
r6408 r6434 235 235 pavithran s <pavithran.s@gmail.com> 236 236 Barry Pederson <bp@barryp.org> 237 permonik@mesias.brnonet.cz 237 238 petr.marhoun@gmail.com 238 239 pgross@thoughtworks.com django/trunk/django/utils/cache.py
r6222 r6434 58 58 else: 59 59 cc = {} 60 61 # If there's already a max-age header but we're being asked to set a new 62 # max-age, use the minumum of the two ages. In practice this happens when 63 # a decorator and a piece of middleware both operate on a given view. 64 if 'max-age' in cc and 'max_age' in kwargs: 65 kwargs['max_age'] = min(cc['max-age'], kwargs['max_age']) 66 60 67 for (k,v) in kwargs.items(): 61 68 cc[k.replace('_', '-')] = v
