AppCache.php 505 B

12345678910111213141516171819
  1. <?php
  2. use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
  3. class AppCache extends HttpCache
  4. {
  5. protected function getOptions()
  6. {
  7. return array(
  8. 'debug' => false,
  9. 'default_ttl' => 0,
  10. 'private_headers' => array(),
  11. 'allow_reload' => false,
  12. 'allow_revalidate' => false,
  13. 'stale_while_revalidate' => 60,
  14. 'stale_if_error' => 86400,
  15. );
  16. }
  17. }