github FriendsOfSymfony/FOSJsRoutingBundle 1.3.0

latest releases: 3.2.0, 3.1.1, 3.1.0...
8 years ago
  • Add ability to set Cache-Control headers. Now, you can enable HTTP caching as below:
# app/config/config.yml
fos_js_routing:
    cache_control:
        # All are optional, defaults shown
        public: false   # can be true (public) or false (private)
        maxage: null    # integer value, e.g. 300
        smaxage: null   # integer value, e.g. 300
        expires: null   # anything that can be fed to "new \DateTime($expires)", e.g. "5 minutes"
        vary: []        # string or array, e.g. "Cookie" or [ Cookie, Accept ]

Thanks to @cmenning!

Don't miss a new FOSJsRoutingBundle release

NewReleases is sending notifications on new releases.