Avoid error 304?

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
noamc
-


Joined: 26 Mar 2007
Posts: 2

PostPosted: Mon Mar 26, 2007 10:40 pm    Post subject: Avoid error 304? Reply with quote

The server (v2.4) returns (correctly) error 304.
Is there a way to tell the server to ignore the "if-modified-since"
field and send the content anyway?

The web client is a Nokia phone which beyond my control.

Extended info:
When the phone sends for the second time a GET request to the server, it adds a 'if-modified-since' , with the timestamp of the original file downloaded.

The server correctly replies with 304 and nothing more, but the client don't know what to do with it. (It is about Midlet download -- a JAD file).
The file is correctly downloaded at the first access. Only the second is problematic.
What I want is a workaround: The server should simply reply with the file without using the 'if-modified-since'

An Ethereal capture is available if needed.

thanks
Noam.
Back to top View user's profile Send private message
pkSML
-


Joined: 29 May 2006
Posts: 955
Location: Michigan, USA

PostPosted: Mon Mar 26, 2007 10:51 pm    Post subject: Reply with quote

You should see if the phone in question will properly respond to this header:
Code:
Cache-Control: no-cache


You can test this by adding a custom header at http://localhost:9999/hosts/host@0/edit/general/advanced/edit
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Mar 26, 2007 10:56 pm    Post subject: Reply with quote

You could try disabling cache from the the download your trying to disable the "if-modified-since" header from. To do that, go to "General -> Advanced Parameters (Edit) -> Disable Caching Negotiation for (Add)", under the Hosts configuration.

From here, you can probably fix that error.
Back to top View user's profile Send private message Visit poster's website
noamc
-


Joined: 26 Mar 2007
Posts: 2

PostPosted: Tue Mar 27, 2007 2:38 pm    Post subject: Reply with quote

Both methods worked!

thanks.
Noam
Back to top View user's profile Send private message
funkytoad
-


Joined: 20 Jun 2006
Posts: 9
Location: Washington, United States

PostPosted: Sun Apr 08, 2007 3:46 am    Post subject: Reply with quote

I just love a happy ending!
_________________
The FunkyToad Network
www.FunkyToad.net
Back to top View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group