Skip to content

Commit

Permalink
Fix last_modified documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer committed Aug 13, 2014
1 parent 9c6c5d4 commit 45eead6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
12 changes: 8 additions & 4 deletions Resources/doc/features/headers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ For instance:
match:
host: ^login.example.com$
headers:
cache_control: { public: false, max_age: 0, s_maxage: 0, last_modified: "-1 hour" }
cache_control: { public: false, max_age: 0, s_maxage: 0 }
last_modified: "-1 hour"
vary: [Accept-Encoding, Accept-Language]
# match all actions of a specific controller
Expand All @@ -33,21 +34,24 @@ For instance:
attributes: { _controller: ^AcmeBundle:Default:.* }
additional_cacheable_status: [400]
headers:
cache_control: { public: true, max_age: 15, s_maxage: 30, last_modified: "-1 hour" }
cache_control: { public: true, max_age: 15, s_maxage: 30 }
last_modified: "-1 hour"
-
match:
path: ^/$
headers:
cache_control: { public: true, max_age: 64000, s_maxage: 64000, last_modified: "-1 hour" }
cache_control: { public: true, max_age: 64000, s_maxage: 64000 }
last_modified: "-1 hour"
vary: [Accept-Encoding, Accept-Language]
# match everything to set defaults
-
match:
path: ^/
headers:
cache_control: { public: true, max_age: 15, s_maxage: 30, last_modified: "-1 hour" }
cache_control: { public: true, max_age: 15, s_maxage: 30 }
last_modified: "-1 hour"
See the :doc:`/reference/configuration/headers` configuration reference.

Expand Down
8 changes: 4 additions & 4 deletions Resources/doc/reference/configuration/headers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ checked in the order specified, where the first match wins.
public: false
max_age: 0
s_maxage: 0
last_modified: "-1 hour"
last_modified: "-1 hour"
vary: [Accept-Encoding, Accept-Language]
# match all actions of a specific controller
Expand All @@ -34,7 +34,7 @@ checked in the order specified, where the first match wins.
public: true
max_age: 15
s_maxage: 30
last_modified: "-1 hour"
last_modified: "-1 hour"
-
match:
Expand All @@ -44,7 +44,7 @@ checked in the order specified, where the first match wins.
public: true
max_age: 64000
s_maxage: 64000
last_modified: "-1 hour"
last_modified: "-1 hour"
vary: [Accept-Encoding, Accept-Language]
# match everything to set defaults
Expand All @@ -56,7 +56,7 @@ checked in the order specified, where the first match wins.
public: true
max_age: 15
s_maxage: 30
last_modified: "-1 hour"
last_modified: "-1 hour"
rules
-----
Expand Down

0 comments on commit 45eead6

Please sign in to comment.