I know that Varnish is not supposed to cache POST requests, but I
think it may be doing it anyway.

I have a very simple API that the user will pass a couple of data
fields via a POST request. Even though the post data changes, the
returned data does not.

Looking at the logs I see:

    2011-10-11T20:53:27+00:00 app[web.1]: Started POST "/printed.xml"
for 172.0.0.1 at 2011-10-11 20:53:27 +0000
    2011-10-11T20:53:27+00:00 app[web.1]: cache: [POST /printed.xml]
invalidate, pass
    2011-10-11T20:53:27+00:00 app[web.1]:   Processing by
PrintedController#index as XML
    2011-10-11T20:53:27+00:00 app[web.1]:   Parameters:
{"print_date"=>"2011-10-11T00:00:00Z"}
    2011-10-11T20:53:27+00:00 app[web.1]: Completed 200 OK in 131ms
(Views: 16.7ms | ActiveRecord: 111.9ms)
    2011-10-11T21:07:03+00:00 heroku[router]: GET
xxx-74.herokuapp.com/ dyno=web.1 queue=0 wait=0ms service=7ms
status=301 bytes=0


What does the "cache: [...] invalidate, pass" mean?

Is Varnish (or something else) caching the response? If not, then why
does the returned data not change?

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to