Django Book 翻译
菜单>:
TOC
返回
原文:
The caching middleware already sets the cache headers ``max-age`` with the value of the ``CACHE_MIDDLEWARE_SETTINGS`` setting. If you use a custom ``max_age`` in a ``cache_control`` decorator, the decorator will take precedence, and the header values will be merged correctly.)
翻译:
缓存中间件已经使用 ``CACHE_MIDDLEWARE_SETTINGS`` 设置设定了缓存头标 ``max-age`` 。如果你在 ``cache_control`` 修饰器中使用了自定义的 ``max_age`` ,该修饰器将会取得优先权,该头标的值将被正确地被合并。)
备注:
译者: