Forms Server Caching

A client raised an interesting problem recently. InfoPath forms rendered using Forms Server were being cached in the browser (or rather IE)

On the development and test environments, the forms worked fine, but on pre-production, the caching started.
The caching represented itself by showing the dreaded 'The form has been closed' error when a user tried to open a form for a second time. verbose logging on the server showed that Forms Server itself was not appearing to do anything untoward.

The workaround at the moment is to open FormServer.aspx on in the LAYOUTS directory and add

[code:html] 

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

[/code]

into the head (stopping the browser from caching the page and form. (Important note - this is a shipped file and on production servers should not be modified.)

 

It is feasible to copy FormServer.aspx to somehting like ncFormServer.aspx and call your new url when opening a form, but I haven't yet tried this e.g. /_layouts/ncFormServer.aspx?XsnLocation=........&Source=....&OpenIn=Browser

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Comments

May 21. 2010 18:38

Designer handbags



Hey this is a great post. I'm going to email this to my buddies. I stumbled on this while googling for some lyrics, I'll be sure to come back. thanks for sharing.

Designer handbags

August 7. 2010 21:13

discount wallets

Nice content, I trust this is a nice blog. Wish to see fresh content next time.

discount wallets

August 13. 2010 13:30

Dani Sharer

I was extremely pleased to come across this website.I desired to thank you for this good go through I definitely enjoying every little bit of it and I've you bookmarked to check out new stuff you post.

Dani Sharer

August 14. 2010 07:18

Francis Murders

Good to be seeing your website again, it's been several weeks for me. Actually this particular posting is what i have been waiting around for so long. I require this information to finish my college assignment, and your blog post is a great help. Thank you, awesome share.

Francis Murders

August 16. 2010 15:53

Wordpress Themes

Good read. You ok if i add this info to my blog?

Wordpress Themes

August 16. 2010 18:28

Blake Polster

You certain do know what youre talking about. Guy, this website is just excellent! I cant wait to study far more of what youve got to say. Im actually happy that I came across this when I did because I had been actually starting to obtain bored using the whole blogging scene. Youve turned me close to, man!

Blake Polster

August 16. 2010 22:47

Samatha Rouselle

I totally accept the previously mentioned comment, the internet is undoubtedly growing into the most powerful channel of communication internationally and it's thanks to sites such as this that ideas are spreading so rapidly.

Samatha Rouselle

August 17. 2010 06:15

nike air max 1 online

You did the a great work writing and revealing the hidden beneficial features of BlogEngine.Net, that I found it was popularly used by bloggers nowadays. I think BE has emerged to be one of the best blogging platform right now. I wish you good luck with your blogging experiences.

nike air max 1 online

August 17. 2010 07:32

Damon Westrup

I ought to say, as a lot as I enjoyed reading what you had to express, I couldnt help but lose interest following a while. Its as if you had a fantastic grasp on the topic matter, but you forgot to contain your readers. Perhaps you should take into consideration this from much more than a single angle. Or maybe you shouldnt generalise so much. Its greater if you think of what other people may have to express instead of just going for the gut reaction to the subject matter. Think about adjusting your own thought process and giving others who might go through this the benefit in the doubt.

Damon Westrup

August 19. 2010 01:29

Carey Draggoo

Found your blog and decided to have a fast browse, not what a normally do but good one. Good to see a blog for a change that isn't filled with junk and rubbish, and really makes some sense. In any case, awesome write-up.

Carey Draggoo

August 26. 2010 23:22

Joesph Shanahan

If I might --perhaps you should consider adding a few images. I dont mean to disrespect what youve said; its very enlightening, indeed. However, I think would respond to it more positively if they could be something tangible to your ideas. Keep it up, but put a little more into it next time

Joesph Shanahan

August 28. 2010 00:17

Robbyn Rubulcaba

Aw, this was a really quality post. In theory I'd like to write like this too - taking time and real effort to make a good article... but what can I say

Robbyn Rubulcaba

August 28. 2010 12:37

nude cam

Hey, Are you looking for any guest writers right now as I am willing to provide you with high quality articles written specfically for your website.

nude cam

September 1. 2010 20:53

Sex Cam

Hello webmaster can I use some of the information from this post if I provide a link back to your site?

Sex Cam

September 2. 2010 06:04

Tom Mordehay

great post! i'm bookmarking this!

Tom Mordehay

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading



 

Dilbert of the day