473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

if-modified-since question (protocol problem?)

hug
[originally posted in alt.www.webmaster, was suggested that this ng
could be a better place.]

I've updated my test server to handle if-modified-since. I've noticed
that the (old copies I run of) IE and Netscape seem never to send
if-modified-since. But the strange thing is that Opera sends
if-modified-since but when I reply with "HTTP/1.0 304 Not Modified" it
is not refreshing the screen from its cache, it is leaving the screen
blank.

I can only conclude that either I am not returning a correct protocol
sequence including "HTTP/1.0 304 Not Modified", or that the old Opera
I'm running contains a bug. I'm betting on the incorrect response in
my code.

Anybody have experience with handling if-modified-since themselves and
doing it properly?

--
http://www.ren-prod-inc.com/hug_soft...action=contact
May 7 '06
102 6651
On 13/05/2006 18:54, VK wrote:

[snip]
Also I want to discover the mistery of Content-Type:
application/xhtml+xml treated completely different by your machine and
by mine: as no amount of common sense seems able to help here :-)
Looking at

<http://mwinter.webhop.info/xhtml-test/test.xhtml>

you should find it served as application/xhtml+xml and, predictably,
loading it in MSIE 6 SP2 (IE) will prompt to download (I make no claim
at this point for other versions or service packs). The file at

<http://mwinter.webhop.info/xhtml-test/test.xml>

is identical in all but file name, and served with the same MIME type.
Here, IE will display the content as a source tree.

Unfortunately, the last test file at

<http://mwinter.webhop.info/xhtml-test/test.html>

cannot be used as a demonstration on that server as Zeus is too simple
and refuses to override the MIME type. However, if it did work as it
should, despite the same 'unknown' media type, IE will render the
document as HTML.

There is an archive of the directory contents at

<http://mwinter.webhop.info/xhtml-test/xhtml-test.zip> (1.3KB)

containing a .htaccess file to force the application/xhtml+xml content
type and the three identical files above.
I have a hypothesis (nothing but hypothesis yet) of a common reason
for all discrepancies: because of intermediary HTTP proxies.


Even if that were the case, it wouldn't account for the behaviour I
observe: my test server runs as a local service.

[MLW:]
As I stated previously, your 'test' doesn't send any freshness
information, therefore Opera reverts to the 'Check ...' options to
determine whether to revalidate a cached resource.


It is not totally correct. My "test" sends Date and Expires headers
both set to the time of request in RFC1123 format.


One of them does, but the one you cited doesn't. :-)

[snip]

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
May 14 '06 #101
On 14/05/2006 12:48, Michael Winter wrote:

[snip]
There is an archive of the directory contents at

<http://mwinter.webhop.info/xhtml-test/xhtml-test.zip> (1.3KB)

containing a .htaccess file to force the application/xhtml+xml
content type and the three identical files above.


It dawned on me - too late, admittedly - that the example in my previous
post is likely to be at least functionally equivalent to the one you
presented yourself. Therefore, it seems to me that an independent
third-party might be beneficial. The one I had in mind has no
affiliation with either of us, and no bias either way. In fact, the
observer is automated. I speak of BrowserCam.

I registered a trial account and pointed all Windows versions of IE at
the test I described. I'll let the resulting screenshots speak for
themselves.

<http://mwinter.webhop.info/xhtml-test/screenshots.html>

Be sure to notice the download prompt in the lower right corner, where
appropriate.

[snip]

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
May 14 '06 #102
VK

Michael Winter wrote:
It dawned on me - too late, admittedly - that the example in my previous
post is likely to be at least functionally equivalent to the one you
presented yourself. Therefore, it seems to me that an independent
third-party might be beneficial. The one I had in mind has no
affiliation with either of us, and no bias either way. In fact, the
observer is automated. I speak of BrowserCam.


Do you have a written proof that you are not a major BrowserCam
stockholder? No one of your relatives is on board of directors of the
above mentioned business unit? :-))

I have to make an online sale collection of 2000 French purses for my
customer by Tuesday. So no time for real programming - only for loosy
text typing like right now. We'll make it a week project. I promise to
say "I was wrong" whereever and /if/ I was.

May 14 '06 #103

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Darcy Ryan | last post by:
Greetings, I am having a problem trying to use the TcpClient and NetworkStream classes to connect to a POP3 server. My (simplified test) VB.NET code is as follows: Dim tcpclient As New...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.