| | |
| | | |
| | | http_cache |
| | | |
| | | .. note:: This feature is new as of Pyramid 1.1. |
| | | |
| | | When you supply an ``http_cache`` value to a view configuration, |
| | | the ``Expires`` and ``Cache-Control`` headers of a response |
| | | generated by the associated view callable are modified. The value |
| | |
| | | |
| | | This value must match the ``name`` of a :term:`route |
| | | configuration` declaration (see :ref:`urldispatch_chapter`) |
| | | that must match before this view will be called. Note that |
| | | the ``route`` configuration referred to by ``route_name`` |
| | | usually has a ``*traverse`` token in the value of its |
| | | ``path``, representing a part of the path that will be used |
| | | by :term:`traversal` against the result of the route's |
| | | :term:`root factory`. |
| | | |
| | | .. warning:: Using this argument services an advanced |
| | | feature that isn't often used unless you want to perform |
| | | traversal *after* a route has matched. See |
| | | :ref:`hybrid_chapter` for more information on using this |
| | | advanced feature. |
| | | that must match before this view will be called. |
| | | |
| | | request_type |
| | | |