{"action":"opened","issue":{"url":"https://api.github.com/repos/kleisauke/imagesweserv-issueTestRepo/issues/9","repository_url":"https://api.github.com/repos/kleisauke/imagesweserv-issueTestRepo","labels_url":"https://api.github.com/repos/kleisauke/imagesweserv-issueTestRepo/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/kleisauke/imagesweserv-issueTestRepo/issues/9/comments","events_url":"https://api.github.com/repos/kleisauke/imagesweserv-issueTestRepo/issues/9/events","html_url":"https://github.com/kleisauke/imagesweserv-issueTestRepo/issues/9","id":207057218,"number":9,"title":"Remove cached images (by API/manual)","user":{"login":"kleisauke","id":12746591,"avatar_url":"https://avatars.githubusercontent.com/u/12746591?v=3","gravatar_id":"","url":"https://api.github.com/users/kleisauke","html_url":"https://github.com/kleisauke","followers_url":"https://api.github.com/users/kleisauke/followers","following_url":"https://api.github.com/users/kleisauke/following{/other_user}","gists_url":"https://api.github.com/users/kleisauke/gists{/gist_id}","starred_url":"https://api.github.com/users/kleisauke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kleisauke/subscriptions","organizations_url":"https://api.github.com/users/kleisauke/orgs","repos_url":"https://api.github.com/users/kleisauke/repos","events_url":"https://api.github.com/users/kleisauke/events{/privacy}","received_events_url":"https://api.github.com/users/kleisauke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-12T15:30:42Z","updated_at":"2017-02-12T15:30:42Z","closed_at":null,"body":"# Remove cached images (by API/manual) [15774949] #\n\n**Submitted by Eugene Huseynov on 23-8-2016 0:00:00**  \n**24 votes on UserVoice prior to migration**  \n\nGIVEN:\r\n//------------------------------------------------------------------------\r\nimage source (url parametre) is:\r\nmaps.googleapis.com/maps/api/staticmap?sensor=false&size=2048x350&scale=2&maptype=roadmap&zoom=13&markers=color:blue|size:small|1400+Oakton+Street,+Evanston,+IL+60202\r\nencoded version:\r\nmaps.googleapis.com%2Fmaps%2Fapi%2Fstaticmap%3Fsensor%3Dfalse%26size%3D2048x350%26scale%3D2%26maptype%3Droadmap%26zoom%3D13%26markers%3Dcolor%3Ablue%257Csize%3Asmall%257C1400%2BOakton%2BStreet%2C%2BEvanston%2C%2BIL%2B60202\r\nI'm using following images.weserv.nl parametres:\r\n&w=70&t=square&h=70\r\nfinal link:\r\nhttp://images.weserv.nl/?url=maps.googleapis.com%2Fmaps%2Fapi%2Fstaticmap%3Fsensor%3Dfalse%26size%3D2048x350%26scale%3D2%26maptype%3Droadmap%26zoom%3D13%26markers%3Dcolor%3Ablue%257Csize%3Asmall%257C1400%2BOakton%2BStreet%2C%2BEvanston%2C%2BIL%2B60202&w=70&t=square&h=70\r\n//----------------------------------------------------------------------------\r\nISSUE:\r\nSome of the \"google map images\" cached properly, some of them is not (link provided above - final link)\r\nLooks like when caching process is broken by any internal reason, the \"image url\" is still remembered as a key in your collection. So there is no way to rebuild correct cache for that \"broken\" image.\r\nQUESTION:\r\nIs any api/way to expire/delete/rebuild/invalidate existing image cache?\n\n\n\n## Response ##\n**by Andries Louw Wolthuizen on 23-8-2016 0:00:00**\n\nNeed to check if there is a reliable way to remove images from all caches. Will look into this!\n\n\n## Comments ##\n\n\n#### Comment by Eugene Huseynov on 30-8-2016 22:39:00 ####\nHi Andries.\r\nI appreciate for your time and energy you spend for this project.\r\nAny luck to fix such king issues or may be add an API for the project so customers could reset/update/delete cached images themself?\r\nThank you one more time.\r\nEugene\n\n\n#### Comment by ADMIN\r\nAndries Louw Wolthuizen (Webmaster, Images.weserv.nl - Image cache & resize proxy) on 1-9-2016 18:53:00 ####\nHi Eugene,\r\nThis project didn't start with the intent of providing access to reset/update/delete images. To serve all users, there are caches at multiple levels involved (edge, processing, backplanes, requesters). The difficulty is that not all of these caches are capable of reliable removing single entries, and the freshness is also varying wildly (based on effort to recreate, the number of requests, etc, etc).\r\nHowever, the feature as proposed is still on the roadmap, and will probably be implemented in the next code-refresh. When this will be finished is uncertain, as many new features and changes are to be incorporated in such an update.\r\nIn the meanwhile, you could consider using our code to set up your own solution. The GitHub-repo is sans any cache, so you should extent it with your own caching solution, or disregard it completly. For starters I would advise some form of reverse caching proxy (like nginx).\r\n-- Andries\n\n\n\n**[Original UserVoice Submission](https://imagesweserv.uservoice.com/forums/144259-images-weserv-nl-general/suggestions/15774949)**\n[Archived Uservoice Comments](../tree/master/archive/suggestion-15774949-remove-cached-images-by-api-manual.md#comments)\n"}}
{"actor":{"display_login":"kleisauke"}}