IIS 7 and Above
MediaWiki Every other Page refresh no Stylesheet
Last post Oct 07, 2014 12:31 AM by ssaviers
Oct 06, 2014 06:00 PM|ssaviers|LINK
I have come to the conclusion that IIS is my problem at the moment as I have fallen back to prior version of PHP and mediawiki with the same result.
Currently I have the same situation on both IIS 7.5 and 8 when I navigate to my mediawiki site it will render fine and then I do a page refresh and it returns with no stylesheet. I then refresh again and all looks fine.
Looking in a fiddler session when the stylesheet fails to load properly I see the following header on the URL supposedly fetching the CSS.
If-Modified-Since: Fri, 03 Oct 2014 00:18:06 GMT
The problem seems that the file is cached so it wont refresh itself and it ends up being read by the browser as a bad MIME type and is an empty file resulting in the plain HTML.
I do not have any URL Rewrite rules in place and have the same behavior from local server host and various remote machines under different browsers so its something being served back.
Oct 06, 2014 11:00 PM|lextm|LINK
You probably "come to the conclusion" too soon. How can you explain "by the browser as a bad MIME type and is an empty file resulting in the plain HTML"? Why that's not a browser issue? Hope you can spare more time on browser side and also go through
HTTP RFC documents. Then you can gain more insights and draw a conclusion based on all facts you can collect.
When in doubt, open a support case via
Oct 07, 2014 12:31 AM|ssaviers|LINK
Thank you for taking the time to respond. It very well may be a browser problem but three different browsers on various machines having the same issue?
If I use any of the debugging tools in the browsers and flag the "Always Refresh From Server" true or simply do a continuous CTRL+F5 with a positive resulting page refresh in IE is that a local Client Browser problem or an issue with the serving application?
I found a way to fix my problem by trying to validate something to prepare a response with an example.
I looked at the header in my other site that I was migrating from on IIS6 and the age of the "if-modified-since" was way off, by years in the past. The new one had a future time stamp. I created an "Output Caching" rule for file extension "*", simply defining
".php" for the file extension didn't work.