Re: IE Caching & Rabbitweb

"Phil D [email protected] [rabbit-semi]" <[email protected]>
Newsgroups gmane.comp.hardware.rabbit-semiconductor
Message-ID <CAL8BBoOc92zZstvxxkObkbnF4mhixkR80kPypY_B8cx2q_WgLg@mail.gmail.com>
you could use the custom headers on the rabbit http server add



Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0

I use them to allow access to the files from a remote page
eg



#define HTTP_CUSTOM_HEADERS(state, buffer, bytes) \
my_headers(state, buffer, bytes)


void my_headers(HttpState *state, char *buffer, int bytes)
{
strcpy(buffer, "Access-Control-Allow-Origin : *\r\n");
}



im having a few issues with caching so will be looking add implimenting
this.

i have previously used a cache manifest file that i incremented a variable
with, this allows for you to choose when the files should be reloaded, i
found this to be a little unreliable and its another file the client has to
download.


On 6 August 2014 01:42, [email protected] [rabbit-semi] <
[email protected]> wrote:

>
>
> I have a Rabbitweb enabled web application that is running on a RCM6700
> and it works great on Firefox, Chrome, Safarai, Opera and any other web
> browser. But if I run IE, and don't pull up the developer tools (which
> seems to disable IEs aggressive caching) the application just looks frozen.
> Once I looked into the back end of it I realized that it was because it was
> retrieving my XML file I'm using a XMLHttpRequest() to pull from the
> server, from IEs cache instead of pulling it from the RCM
>
>
> I have not found any way to specify the headers of the XML file to modify
> the cache expiry, or do anything else that would force IE to not think it
> can just use the cached version of the file. I don't want to append a
> datestamp or any other sort of unique nonsense on the end of the GET if
> that is at all possible. I just want to tell IE that this is a non
> cacheable file, or that the cache expiry was -1 mins ago or something like
> that. I know its possible just annoying.
>
>
> Anyone got any ideas?
>
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.