Breaking CSS Cache

I built a simple web interface for SolarWinds Orion. I recently converted all the status images that used to be individual files into a CSS sprite to save on HTTP requests. Now instead of grabbing all the stats light graphics one by one the browser only needs to download my sprite image once.

After implementign the change most of my users reported losing the devices status images and just seeing the text in the the status column. Text that due to my CSS changes should be pushed off the edge of the page and not be visable.

It turns out the problem was related to browser caching I recently implemented that caused CSS files to be cached in the browser for a month.

The fix is rather easy I simply need to make the broswer think the CSS file it has in its cache is no longer valid. Changin the name of the file will occomplish this but we don’t want to have to rename all our CSS files.

The v=1 at the end of the filename does just want we wanted, the broswer will now think overrides.css is a new file. This is a variable and with CSS is simply ignored, Now whenever we make changes we can simply increment this file up by one. Browsers will think its a diffrent file and download the new content.

Our Users will now see the changes we made to the CSS in our overrides.css file.

No tips yet.
Be the first to tip!

Like this post? Tip with bitcoin!

1PJ2Co8G5ttKPy4h3iawk9p2bQZa1cjZMr

If you enjoyed reading this post, please consider tipping me using Bitcoin. Each post gets its own unique Bitcoin address so by tipping you're not only making my continued efforts possible but telling me what you liked.

Some of My Favorites.

Gallery

This gallery contains 6 photos.

A Few of my favorite photographs I’ve taken of San Diego… Enjoy! No tips yet.Be the first to tip!Like this post? Tip with bitcoin!18KQq3p8iZohHagurLqmZeBCSSjYvgwZ8zIf you enjoyed reading this post, please consider tipping me using Bitcoin. Each post gets its own … Continue reading

Apples response to reception issues??? Free Bumpers for all! [Update]

Thats right during todays press conference. Steve Jobs announced that they will be providing a free bumpers or cases for everyone who has:

  • Already purchased an iPhone 4
  • Plans on purchasing one before September 30th
    • After Sep 30th Apple will re-evaluate the situation and ether extend the free case offer or provide a different solution.

Apple will offer a free iPhone 4 Bumper or other select cases to iPhone 4 customers. Details on how to order a free Bumper or case will be available soon on apple.com.

Apple also did some research and determined that all smart phones suffer from this phenomenon when  you cover the internal antenna. The only difference with the iPhone 4 is its so obvious given that the problem occurs over one of the black bands on the antenna of the phone.

What color bumper will you be picking? I’m going for white myself.

Update (8/10/20210): Apple didnt offer any color other than black for the free iPhone 4 Bumper deal. But I received mine about a week ago. I really like it but was also really hoping for a white one =(

No tips yet.
Be the first to tip!

Like this post? Tip with bitcoin!

1HyFva8ACSj3edZurh8FwKcpu5gJijHkTq

If you enjoyed reading this post, please consider tipping me using Bitcoin. Each post gets its own unique Bitcoin address so by tipping you're not only making my continued efforts possible but telling me what you liked.

4th Generation iPhone?

Someone’s in trouble over at Apple, apparently someone “found” a iPhone on the floor at a bar in Redwood City, which is under 20 miles from Apple headquarters. Gizmodo is 99% sure the device is authentic.

I’m not completely sure about it but I’m going to have to lean on the side of believing this one. I for one really like the design, I’ve always been a fan of hard edges and actual don’t really like the rounded back my 3GS has when I upgraded from a first gen.

Most noticeable changes are the separate volume buttons, a MicroSIM card instead of the standard SIM card. The Display is apparently a tad smaller but much higher resolution. The iPhone looks to now support a Front-facing camera, (hopefully for video calls).

According to the individual who found the phone, it was running OS 4.0 before the iPhone 4.0 announcement but it looks as if Apple has remotely bricked the phone and now all that can be seen on it now is the Connect to iTunes screen, it can’t be restored since it needs iPhone OS 4.0 which is not available at this time.

I’m hoping the volume buttons can act as soft keys in apps, when I had my first gen Jail broken I reconfigured volume up to act as a shutter release giving it more of a camera feel when taking pictures. I’m hoping Apple does something similar with this phone.

Either way, we’ll know for sure in a few short months. If apple follows with the re past announcements, Steve will be showing us a fully operational version soon .

For the full story head over to Gizmodo and take a look at the rest of the photos as well as a few videos they have posted.

http://gizmodo.com/5520164/this-is-apples-next-iphone

No tips yet.
Be the first to tip!

Like this post? Tip with bitcoin!

132wpULWfQ678imAVaFp7vAUZ8HxGPLbP1

If you enjoyed reading this post, please consider tipping me using Bitcoin. Each post gets its own unique Bitcoin address so by tipping you're not only making my continued efforts possible but telling me what you liked.

My new toy




Of the D5000 with the D5000

Originally uploaded by kaoticsnow

For my Birthday I used my Tax return to pick up a new camera to take on my trip to Mexico at the end of the month, behold my Nikon D5000. =) I’ve really been wanting to get a DSLR for some time now and I’m glad I was finally able to pick one up.

I’ll be posting more pictures up to my flickr account now that I have a nice camera, you can see the 4 most recent in the top right of my blog at any given time. I’ll be sure to include a more detailed post about my camera and why I picked the one I did in a few days, but for now I need to get some sleep.

No tips yet.
Be the first to tip!

Like this post? Tip with bitcoin!

1HGHM7N1ftB3zN9VhpfBz9BLmXo4dFjcjR

If you enjoyed reading this post, please consider tipping me using Bitcoin. Each post gets its own unique Bitcoin address so by tipping you're not only making my continued efforts possible but telling me what you liked.