{"action":"created","issue":{"url":"https://api.github.com/repos/bumptech/glide/issues/1012","repository_url":"https://api.github.com/repos/bumptech/glide","labels_url":"https://api.github.com/repos/bumptech/glide/issues/1012/labels{/name}","comments_url":"https://api.github.com/repos/bumptech/glide/issues/1012/comments","events_url":"https://api.github.com/repos/bumptech/glide/issues/1012/events","html_url":"https://github.com/bumptech/glide/issues/1012","id":137148050,"number":1012,"title":"how to create expired cache image?","user":{"login":"thestarclubz","id":4988279,"avatar_url":"https://avatars.githubusercontent.com/u/4988279?v=3","gravatar_id":"","url":"https://api.github.com/users/thestarclubz","html_url":"https://github.com/thestarclubz","followers_url":"https://api.github.com/users/thestarclubz/followers","following_url":"https://api.github.com/users/thestarclubz/following{/other_user}","gists_url":"https://api.github.com/users/thestarclubz/gists{/gist_id}","starred_url":"https://api.github.com/users/thestarclubz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thestarclubz/subscriptions","organizations_url":"https://api.github.com/users/thestarclubz/orgs","repos_url":"https://api.github.com/users/thestarclubz/repos","events_url":"https://api.github.com/users/thestarclubz/events{/privacy}","received_events_url":"https://api.github.com/users/thestarclubz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bumptech/glide/labels/question","name":"question","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-29T04:34:18Z","updated_at":"2016-03-01T09:54:57Z","closed_at":null,"body":"expired cache image on disk and in memory how to ?"},"comment":{"url":"https://api.github.com/repos/bumptech/glide/issues/comments/190640081","html_url":"https://github.com/bumptech/glide/issues/1012#issuecomment-190640081","issue_url":"https://api.github.com/repos/bumptech/glide/issues/1012","id":190640081,"user":{"login":"TWiStErRob","id":2906988,"avatar_url":"https://avatars.githubusercontent.com/u/2906988?v=3","gravatar_id":"","url":"https://api.github.com/users/TWiStErRob","html_url":"https://github.com/TWiStErRob","followers_url":"https://api.github.com/users/TWiStErRob/followers","following_url":"https://api.github.com/users/TWiStErRob/following{/other_user}","gists_url":"https://api.github.com/users/TWiStErRob/gists{/gist_id}","starred_url":"https://api.github.com/users/TWiStErRob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TWiStErRob/subscriptions","organizations_url":"https://api.github.com/users/TWiStErRob/orgs","repos_url":"https://api.github.com/users/TWiStErRob/repos","events_url":"https://api.github.com/users/TWiStErRob/events{/privacy}","received_events_url":"https://api.github.com/users/TWiStErRob/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T09:54:57Z","updated_at":"2016-03-01T09:54:57Z","body":"It's a better way of saying:\r\n```\r\nhttp://url1?signature=signature1\r\nhttp://url1?signature=signature2\r\n```\r\nThese result in two different urls, so when the signature changes Glide is forced to reload, because the cache key is different. It's a better way, because if your model is not an URL (File, resource ID, custom object, etc.), then it's not possible to simply append random stuff to it, so signature provides a neat way to make the cache keys different when invalidating is needed."}}