NetTalk Central

Author Topic: MSIE 11 and $$$ static files  (Read 3046 times)

Rob Kolanko

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
MSIE 11 and $$$ static files
« on: February 05, 2015, 12:29:54 PM »
Bruce,

As discussed during the NetTalk user group today, in certain conditions MSIE 11 will request a  HEAD http request which is deleting the $$$ prefixed static file before the GET request is executed.  Attached is the Web 74 example where I have added a new menu item "ShowPDF" which calls a form that copies the appendixB.pdf file from the root to \Uploads folder with the $$$ prefix. Then the form has added HTML code to embed the PDF into the web page.  You will see that the PDF file will appear with Firefox  but not with Microsoft Internet Explorer 11. This app needs to be compiled in the "Media (74)" folder.

On a side note. You will also see that Firefox will only request the PDF file once and cache it. Thus subsequent calls to the form, Firefox does not request the PDF file again thus the $$$ named file is not deleted. I tried adding HTML Meta tags to the header of the web pages generated (see web handler) that was suppose to prevent the browser from caching files, but it did not work. Firefox still cached the file. Since my generated static files have a unique name, preventing the browser from caching files is not that important to me.

Thanks
Rob


[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: MSIE 11 and $$$ static files
« Reply #1 on: February 08, 2015, 10:10:03 PM »
Thanks Rob - fixed for 8.35.

the fix is simple, so you can apply it to 8.34 there if you like;
in NetWeb.Clw find the RemoveOneServer method.
Replace;

  if instring ('\$$$',p_FileName,1,1)

with

  if instring ('\$$$',p_FileName,1,1) and self.RequestData.RequestMethodType <> NetWebServer_HEAD

Cheers
Bruce