FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » attachments on secure connection & IE
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
attachments on secure connection & IE [message #16240] Wed, 21 January 2004 21:41 Go to next message
kwrona is currently offline  kwrona   Germany
Messages: 4
Registered: January 2004
Karma: 0
Junior Member
Hi,

I have installed FUDforum on web server which uses secure connection (SSL). Most of the features works fine but I have a problem with downloading files (attachments) when I use IE.
(Mozilla & Netscape works fine)

I have traced the problem and this is due to a caching policy for IE (more info on http://support.microsoft.com/default.aspx?scid=kb;en-us;316431 ). The only solution would be to allow the browser cache the content of the web.
I even did a short test and commented the following lines in index.php
line 425:
/*
header("Expires: Mon, 21 Jan 1980 06:01:01 GMT");
header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
header("Pragma: no-cache");
*/

Then the problem disappears, but I think this may break some other parts of the system.
1) could the caching be enabled for attachment only?
2) are there any parts of code which strongly depend on no-chache header?
3) Is there any other way to overcome this problem?

Thanks in advance,
Krzysiek


Re: attachments on secure connection & IE [message #16243 is a reply to message #16240] Wed, 21 January 2004 22:07 Go to previous messageGo to next message
mkettler is currently offline  mkettler   United States
Messages: 6
Registered: January 2004
Karma: 0
Junior Member
I too seem to be suffering from this problem.

Fixing the original poster's link:
http://support.microsoft.com/default.aspx?scid=kb;en-us;316431

and here's another, slightly more technical one:

http://support.microsoft.com/?kbid=812935

This clarifies that either no-cache or no-store causes the undownloadable file over ssl bug.
Re: attachments on secure connection & IE [message #16276 is a reply to message #16243] Sun, 25 January 2004 16:10 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The no-cache header ensures that the browser/proxy won't cache the session data that passed along with the request. This can potentially cause problems with session authentications, which is why it cannot be commented out all together.

I've applied an IE specific fix that would prevent the sending of the no-cache headers when HTTPS is in use.


FUDforum Core Developer
Re: attachments on secure connection & IE [message #24940 is a reply to message #16276] Thu, 19 May 2005 11:02 Go to previous messageGo to next message
vtownbarries is currently offline  vtownbarries   South Africa
Messages: 6
Registered: May 2005
Location: Jhb, South Africa
Karma: 0
Junior Member
I found this code at http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=2443

But where do I have to include this? In index.php?



Work never killed anyone ... but why take a risk!
Re: attachments on secure connection & IE [message #24944 is a reply to message #24940] Thu, 19 May 2005 13:18 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You need to include inside the file that was patched, getfile.php.t and then rebuild the theme.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problems locking/unlocking files
Next Topic: help! fud search broken...
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 05:37:17 GMT 2024

Total time taken to generate the page: 0.02591 seconds