{"action":"reopened","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/19941","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/19941/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/19941/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/19941/events","html_url":"https://github.com/joomla/joomla-cms/issues/19941","id":306458640,"number":19941,"title":"Browser cache hard-wired to 15 minutes in libraries/src/Application/WebApplication.php","user":{"login":"waveywhite","id":2602241,"avatar_url":"https://avatars3.githubusercontent.com/u/2602241?v=4","gravatar_id":"","url":"https://api.github.com/users/waveywhite","html_url":"https://github.com/waveywhite","followers_url":"https://api.github.com/users/waveywhite/followers","following_url":"https://api.github.com/users/waveywhite/following{/other_user}","gists_url":"https://api.github.com/users/waveywhite/gists{/gist_id}","starred_url":"https://api.github.com/users/waveywhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waveywhite/subscriptions","organizations_url":"https://api.github.com/users/waveywhite/orgs","repos_url":"https://api.github.com/users/waveywhite/repos","events_url":"https://api.github.com/users/waveywhite/events{/privacy}","received_events_url":"https://api.github.com/users/waveywhite/received_events","type":"User","site_admin":false},"labels":[{"id":138443932,"url":"https://api.github.com/repos/joomla/joomla-cms/labels/No%20Code%20Attached%20Yet","name":"No Code Attached Yet","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-19T13:18:45Z","updated_at":"2018-03-19T13:30:53Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Steps to reproduce the issue\r\nTry setting the expiry date to sometime in the future that isn't 15 minutes\r\n\r\n$app = JFactory::getApplication();\r\n$app->setHeader('Expires', gmdate('D, d M Y H:i:s', time() + 60) . ' GMT');\r\n\r\nOptionally, also set the application to enable browser cache\r\n$app->allowCache(true);\r\n\r\n\r\n### Expected result\r\n\r\nWe should get a HTTP header with Expires set to 1 minute in the future, somehow.\r\n\r\n### Actual result\r\n\r\nIf we don't set allowCache(true) then we get a date in 2005. This would be OK if allowCache allowed our value of Expires. Instead, it is hard-wired to set an expiry date of 15 minutes into the future (900s)\r\n\r\n### System information (as much as possible)\r\n\r\nJoomla 3.8.6\r\n\r\n### Additional comments\r\n\r\nI propose adding a function setExpiryPeriod to WebApplication which sets the number of seconds into the future the HTTP expiry field can be set."}}
{"actor":{"display_login":"waveywhite"}}