Actually, I have a multi-page survey that updates the database when you change each field (there are no submit buttons). It works pretty well, but if the user backs up to a page after many changes have been made...
I'm not sure I'll do anything more than just tell them not to use the back button on the forms, but it might be better to force a reload of the page where possible. If I can expire it in the cache (or prevent it from being cached), then that should eliminate the problem. That's my thinking anyway. Thanks for the tip. Chas. Tim Perrett wrote: > Chas, > > Look in HttpResppnse.scala - you'll see the LiftResponse subclasses > that are setting custom headers and things. Also see TextResponse etc > for more examples ( all in net.liftweb.http ) > > I'm guessing you need this for some API or such? > > Cheers > > Tim > > Sent from my iPhone > > On 10 Dec 2008, at 02:00, "Charles F. Munat" <[EMAIL PROTECTED]> wrote: > >> I want to (attempt to) prevent the browser from caching certain >> pages as >> there is a problem if the user backs up to them. I can do this with >> HTTP >> headers, of course. >> >> Question: Is this functionality built-in to Lift? I could find nothing >> on the wiki. If not, how does one set the HTTP headers on a page (and >> from where)? >> >> Thanks. >> >> Chas. >> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" 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/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
