{"action":"closed","issue":{"url":"https://api.github.com/repos/spatie/browsershot/issues/197","repository_url":"https://api.github.com/repos/spatie/browsershot","labels_url":"https://api.github.com/repos/spatie/browsershot/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/spatie/browsershot/issues/197/comments","events_url":"https://api.github.com/repos/spatie/browsershot/issues/197/events","html_url":"https://github.com/spatie/browsershot/issues/197","id":329590454,"node_id":"MDU6SXNzdWUzMjk1OTA0NTQ=","number":197,"title":"Reproducing output from first iteration when used in loop or Laravel queue job","user":{"login":"satyago","id":1116039,"node_id":"MDQ6VXNlcjExMTYwMzk=","avatar_url":"https://avatars2.githubusercontent.com/u/1116039?v=4","gravatar_id":"","url":"https://api.github.com/users/satyago","html_url":"https://github.com/satyago","followers_url":"https://api.github.com/users/satyago/followers","following_url":"https://api.github.com/users/satyago/following{/other_user}","gists_url":"https://api.github.com/users/satyago/gists{/gist_id}","starred_url":"https://api.github.com/users/satyago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satyago/subscriptions","organizations_url":"https://api.github.com/users/satyago/orgs","repos_url":"https://api.github.com/users/satyago/repos","events_url":"https://api.github.com/users/satyago/events{/privacy}","received_events_url":"https://api.github.com/users/satyago/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-05T19:18:55Z","updated_at":"2018-06-06T07:30:56Z","closed_at":"2018-06-06T07:30:56Z","author_association":"NONE","body":"Hey @freekmurze and team, sorry to disturb :-)\r\n\r\nIt seems there are issues when browsershot is used from a queue or loop.\r\nThe behavior here seems to be that it caches whatever Html you load, then generates the same pdf or screenshot as done on the first iteration.\r\n\r\nI'm using the `verumconsilium/laravel-browsershot` for Laravel, but quick code diving lets me assume there is no real difference.\r\nIt might also very well be that this is related to Chromium's caching, but without any further knowledge, my assumption is the following: the connection used to issue commands to Puppeteer is kept alive and by doing so the headless Chromium doesn't empty its caches.\r\n\r\nBut as I'm quite frankly lacking the experience with this setup I wanted to ask you on an opinion on the matter, considering that you are the package creator :-)🥇"}}
{"actor":{"display_login":"satyago"}}