Doing Things Wrong

Server Caching Madness - Part 2

Yesterday, two 'tech supports' lied to me about almost everything. The solution that I came up with worked for a few hours, but then a real sysadmin must have noticed it, because it stopped working today. Unfortunately, if you look at the list of hosting companies that EIG has gobbled up over the years, the only other game in town is GoDaddy, and I'm not going there. These are the new Robber-Barons.

The server caching policy is so aggressive, it is even caching images. I cannot imagine the benefits of having the server cache a totally static image file. The extra overhead of creating a copy for the cache must actually slow it down. This is insanity.

After another 'chat' with another support rep who also lied to me ( but this time boldly, blithely, and right away, which was a refreshing change, not to mention a great time-saver ) I realized that I had already coded up a solution and discarded it. That solution is to simply in-line all the css files - have php (WordPress) read them and write the contents directly into the html file. This totally bypasses the web server for the outboard files, at the expense of ruining any caching efficiencies for the end user. It also trashes any caching efficiencies for the server, so ha ha !!! For good measure, I in-lined all the javascript too.

I'm not sure if I will leave this setting on when I am done developing, but it is absolutely necessary right now. What a hellish environment to do any kind of work in. Web hosting has sure gone downhill. But as I said, there are no better alternatives.

WordPress also has some really bizarre default css that is very difficult to override. Some of it I still haven't figured out.


Audiovox 736 Replica Bass
Audiovox Gibson-style Bass
Audiovox Gibson-style Guitar
Audiovox Strat-style Guitar
Audiovox Danelectro-style Bass
Audiovox 12-string Guitar
Audiovox Mandolin
Audiovox Ukulele Bass
Audiovox Fretless Bass
Audiovox Electric Upright Bass
BC Rich "Osprey" Bass
Brownsville Violin Bass
Cowbell Bass
Danelectro Pro-1 Bass
Danelectro "Super-63" Guitar
Danelectro Silvertone 1457 Rescue Guitar
Danelectro Silvertone 1443 Bass
Danelectro Companion Guitar
Danelectro Longhorn Guitar
Danelectro Silvertone U-1 Guitar
Danelectro '67 Hornet Guitar
Fender Jazzmaster Bass 1
Fender Jazzmaster Bass 2
Fender Jazzmaster Bass 3
Fender Stratocaster Bass 1
Fender Stratocaster Bass 2
Fender Stratocaster Micro Bass 1
Fender Stratocaster Micro Bass 2
Fender Stratocaster Fretless Bass
Fender Stratocaster Bass VI
Fender Stratocaster Bass IV
Fender Stratocaster 12-string Guitar
Fender Stratocaster Uke Bass
Fender Telecaster Bass
SX Precision Bass
Gibson Fenderbird Bass 1
Gibson Fenderbird Bass 2
Gibson Reverse Fenderbird Bass
Kubicki Bass
Mosrite Bass
Schwinn Stingray Bass
Rickenbacker 325 Guitar
Rickenbacker 325 Bass 1
Rickenbacker 325 Bass 2
Rickenbacker 325 Bass 3
Rickenbacker 4001 Bass 1
Samick SG450 Guitar
Danelectro Pro-1 Guitar
Danelectro '63 Guitar
Danelectro Silvertone 1457 Guitar
Harmony H617 Bobkat
Danelectro Silvertone 1450 Guitar
Danelectro Silvertone 1472 Amplifier
Harmony Silvertone 1478

For a while now I've been working on the WordPress plugin that does the slideshows. I had re-written the php back-end from NivoSlider, and then I decided to rewrite the front-end. The front-end is driven by jquery, so it was a good opportunity to get familiar with that. It's actually pretty simple.

Over a few months of tinkering, I added several hundred slide transitions, grouped in families to make things manageable. Eventually, I pretty much exhausted all the things you can do by animating css with jquery. So I turned to inline svg image masks. You can do much more with real graphics than just css, but there is one hitch - svg is poorly supported in Chrome and all its derivatives, including Opera, Edge, and Brave. But if you load this page in Firefox or Safari, it will demonstrate what you can do with svg.

Printed from luthierylabs.com