{"action":"created","issue":{"url":"https://api.github.com/repos/glpi-project/glpi/issues/1742","repository_url":"https://api.github.com/repos/glpi-project/glpi","labels_url":"https://api.github.com/repos/glpi-project/glpi/issues/1742/labels{/name}","comments_url":"https://api.github.com/repos/glpi-project/glpi/issues/1742/comments","events_url":"https://api.github.com/repos/glpi-project/glpi/issues/1742/events","html_url":"https://github.com/glpi-project/glpi/issues/1742","id":204540968,"number":1742,"title":"Can't use a random parameter to force reload of javascript in plugins ","user":{"login":"tomolimo","id":7569958,"avatar_url":"https://avatars.githubusercontent.com/u/7569958?v=3","gravatar_id":"","url":"https://api.github.com/users/tomolimo","html_url":"https://github.com/tomolimo","followers_url":"https://api.github.com/users/tomolimo/followers","following_url":"https://api.github.com/users/tomolimo/following{/other_user}","gists_url":"https://api.github.com/users/tomolimo/gists{/gist_id}","starred_url":"https://api.github.com/users/tomolimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomolimo/subscriptions","organizations_url":"https://api.github.com/users/tomolimo/orgs","repos_url":"https://api.github.com/users/tomolimo/repos","events_url":"https://api.github.com/users/tomolimo/events{/privacy}","received_events_url":"https://api.github.com/users/tomolimo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-01T10:02:56Z","updated_at":"2017-02-01T11:18:58Z","closed_at":null,"body":"Hello,\r\n\r\nIn the past, it was possible to force reload of javascript files by browser using a trick: to add a random parameter to the script name like:\r\n$PLUGIN_HOOKS['add_javascript']['myplugin']=\"js/myscript.js?rnd=$rand\";\r\nThis is no longer possible due to the tests used for including files, in html.class.php line 1255\r\n`if (file_exists(GLPI_ROOT.\"/plugins/$plugin/$file\")) {`\r\n\r\nThis trick is mandatory to force Chrome to reload javascript files, otherwise it will use file in memory cache.\r\n\r\nI'm going to provide a fix for it.\r\n\r\nthank you\r\nregards,\r\nTomolimo"},"comment":{"url":"https://api.github.com/repos/glpi-project/glpi/issues/comments/276633251","html_url":"https://github.com/glpi-project/glpi/issues/1742#issuecomment-276633251","issue_url":"https://api.github.com/repos/glpi-project/glpi/issues/1742","id":276633251,"user":{"login":"trasher","id":224733,"avatar_url":"https://avatars.githubusercontent.com/u/224733?v=3","gravatar_id":"","url":"https://api.github.com/users/trasher","html_url":"https://github.com/trasher","followers_url":"https://api.github.com/users/trasher/followers","following_url":"https://api.github.com/users/trasher/following{/other_user}","gists_url":"https://api.github.com/users/trasher/gists{/gist_id}","starred_url":"https://api.github.com/users/trasher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trasher/subscriptions","organizations_url":"https://api.github.com/users/trasher/orgs","repos_url":"https://api.github.com/users/trasher/repos","events_url":"https://api.github.com/users/trasher/events{/privacy}","received_events_url":"https://api.github.com/users/trasher/received_events","type":"User","site_admin":false},"created_at":"2017-02-01T11:18:58Z","updated_at":"2017-02-01T11:18:58Z","body":"Plugin version is added as a parameter from core; is that not enough?"}}
{"actor":{"display_login":"trasher"}}