Posted by Markus Ernst on 02/16/06 12:12
Amanda H. schrieb:
[...]
> ---end of PHP script. Then the link header for the HTML file is:
>
> <link rel="stylesheet" type="text/css"
> href="http://www.amandahenson.com/styleswitcher.php" />
>
> ---end of link. It works in most browsers, but has the problems as
> stated in the originl post.
>
I guess it is a cache problem. Your style switching logic is in the
script that is called as the external stylesheet. So as the href
attribute of the link tag remains the same, IE assumes that it calls the
same stylesheet again and does not check it, but uses the cached version.
Try to change the href attribute on any request, for example like that:
<link rel="stylesheet" type="text/css"
href="http://www.amandahenson.com/styleswitcher.php?<?php echo time();
?>" />
HTH
Markus
[Back to original message]
|