We have an ASP.Net site using Themes. So, ASP.Net is placing our the LINK tags automatically to embed the CSS files. Everything works fine...until we start output caching.
When we output cache a page, every once in a while, the path to one of the CSS files in App_Themes gets screwed up. Without output caching, we get a path like this:
../../App_Themes/MyTheme/base.css
But when we output cache a page, we'll sometimes get a page load with no CSS. We'll check Firebug, and see that the call to the CSS file returned a 404. We'll check the source, and see this:
../App_Themes/MyTheme/base.css
The path is clearly wrong, and it was written wrong by the ASP.Net theme system. The path to the ASPX file requested is correct, so ASP.Net knows what directory it's in and what the relative path is to the CSS file.
This happens:
- Only when we output cache a page.
- Only sporadically. Twenty page loads will be fine, then the 21st will look like this.
Has anyone ever seen this before? Google doesn't turn up anything related for me.