{"action":"opened","issue":{"url":"https://api.github.com/repos/lkarsten/testrepo/issues/79","labels_url":"https://api.github.com/repos/lkarsten/testrepo/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/lkarsten/testrepo/issues/79/comments","events_url":"https://api.github.com/repos/lkarsten/testrepo/issues/79/events","html_url":"https://github.com/lkarsten/testrepo/issues/79","id":120415877,"number":79,"title":"[trac #79] force nocache of objects","user":{"login":"lkarsten","id":108894,"avatar_url":"https://avatars.githubusercontent.com/u/108894?v=3","gravatar_id":"","url":"https://api.github.com/users/lkarsten","html_url":"https://github.com/lkarsten","followers_url":"https://api.github.com/users/lkarsten/followers","following_url":"https://api.github.com/users/lkarsten/following{/other_user}","gists_url":"https://api.github.com/users/lkarsten/gists{/gist_id}","starred_url":"https://api.github.com/users/lkarsten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lkarsten/subscriptions","organizations_url":"https://api.github.com/users/lkarsten/orgs","repos_url":"https://api.github.com/users/lkarsten/repos","events_url":"https://api.github.com/users/lkarsten/events{/privacy}","received_events_url":"https://api.github.com/users/lkarsten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-04T14:49:33Z","updated_at":"2015-12-04T14:49:33Z","closed_at":null,"body":"ISSUE 79 IMPORTED FROM TRAC FOR INDEXING.\nWhat are the correct cache headers to set if I need to tell varnish not to cache a file.\n\nRight now I use :\n\n```\nPragma: no-cache\nCache-Control: s-maxage=0, max-age=0, must-revalidate, no-cache\n```\n\nBut sometimes I get some other users cached file, and it seems to be when I try to get a file in the exact same moment as som eother user.\n\nIn vcl i have the following code to allow caching af some of the files even though a user is logged in.\n\n```\n        # force lookup even when cookies are present\n        if (req.request == \"GET\" && req.http.cookie) {\n                lookup;\n        }\n```\n\nAnd when i request the file I get the following in varnishlog\n\n```\n   15 VCL_call     c recv\n   15 VCL_return   c lookup\n   15 VCL_call     c miss\n   15 VCL_return   c fetch\n\n   16 RxHeader     b Pragma: no-cache\n   16 RxHeader     b Cache-Control: s-maxage=0, max-age=0, must-revalidate, no-cache\n   16 RxHeader     b Expires: Fri, 05 Jan 2007 08:57:03 GMT\n   16 RxHeader     b Content-Length: 1555\n   16 RxHeader     b Connection: close\n   16 RxHeader     b Content-Type: text/javascript\n   15 TTL          c 277100755 RFC 0 1168592154 1168592223 1167987423 0 0\n   15 VCL_call     c fetch\n   15 VCL_return   c insert\n```\n\nCould it be the insert that is made by varnish that is the problem ?"}}