Miscellaneous

A Good Day

0

I am gracious to have witnessed such an historic event take place & be a part of the process.

Preventing xulrunner from caching browser files

0

Leap day post!

The xulrunner app I developed hits a web server running on localhost to serve up its main interface, via XUL’s <browser> tag (similar to HTML’s IFRAME tag). There are instances where the pages & their dependencies should not be cached. Adding the various HTML <meta> tags (expires, pragma, cache-control) prevents the HTML pages from caching, but we really wanted to prevent .js files from being cached since we change the content dynamically in some of them so we didn’t want to return stale data. If we were running Apache, we could just set some HTTP expires headers via mod_expires but since we needed to keep the app installer as small as possible, we were using a much more lightweight web server.

I first tried the following xul prefs:

pref(“nglayout.debug.disable_xul_cache”, true);
pref(“nglayout.debug.disable_xul_fastload”, true);

which didn’t work. I was seeing .js files being saved to xulrunner’s cache (on WinXP, it was in the C:\Documents and Settings\[User name]\Local Settings\Application Data\[App Vendor]\[App Name]\Profiles\* folder)

Then it dawned on me that since we were using the XUL <browser> tag, it essentially loads up a web browser to display the content. Since that meant it was essentially Firefox 2 loading up, I looked in Firefox’s about:config for caching-related preferences and voila:

pref(“browser.cache.disk.enable”, false);

I added that to xulrunner’s prefs.js & no more caching

Get your Raptr on

0

Raptr went into public beta last week. It’s been a pretty intense several months leading up to the launch, so it’s nice to actually have the cat out of the bag. And maybe I’ll see some daylight finally. :)

Some decent coverage of the launch:

Christmas tree

0

I picked up a Christmas tree almost 2 weeks ago, but due to a bunch of other things going on, I didn’t have time to decorate it until a couple days ago.

ka-boom

0

My coworker’s car was hit by someone barreling through a red light @ 40-50mph as we were going to lunch earlier this week. Another 5 feet into the intersection and we would have not been as lucky to walk away unscathed :\

nearly pwned

Page 1 of 512345
Go to Top