ailon's DevBlog: Development related stuff in my life

First .NET App

12/13/2007 10:27:05 AM

Windows Live Writer is the first full-scale consumer product to ship out of Microsoft's camp built on the .NET Framework.
NeoSmart.net

This is fun. Never thought about it.

Tags: ,

Opera, caching and ASP.NET

12/4/2007 4:45:00 PM

How do you create a fastest browser in the whole world? You just CACHE everything in a dumb way!

I just ran into a problem when a client reported anomalies with shopping cart functionality in a project I'm working on. Apparently when you add a product to a cart using Opera and then just navigate to a shopping cart page you see the (client) cached version of that page. If you refresh you see the actual version, then you remove a product from the cart using POST and you still see the actual version, then you just navigate to cart.aspx page and you see the cached version again.

I had no time to investigate the deep causes of this behavior but it looks like Opera by default is pulling from cache any page requested with GET and having no question mark in the URL if it was already requested less than 5 minutes ago.

Since I had no time to research the roots of this behavior I just solved (hopefully) the issue by adding

<%@ OutputCache Location="None" %>

to every sensitive aspx page.

Maybe I should do this all the time just to stay safe but neither IE nor Firefox were behaving in this crazy manner without this. So I'm guessing it's just because they are not after the "fastest browser on the market" crown and can justify creating a smart caching system sacrificing "speed".

So, I guess now I can declare that I hate all of the 3 major browsers (haven't spent enough time with Safari to start hating it). I hate MSIE for lack of support for standards and being slow in adding new features (thankfully there's IE7Pro plugin). I started hating Firefox while developing Gecko support in SPAW 1.x and running into some Gecko bugs that were known for more than 3 years and publicly ignored and for overall stubbornness of Mozilla developers and... I just don't like how it "feels" as a user. I discovered that you can crash Opera with JavaScript while working on Opera support for SPAW 2.x but they've fixed it by now which is nice, but now this...

Update: No caching results in back button not working... hmm... I hate these issues...

Tags: ,

Copyright © 2003 - 2017 Alan Mendelevich
Powered by BlogEngine.NET 2.5.0.6