James Fishwick

  •  Minimal
  •  CSS Tomfoolery

Web App mode leaves users stranded when following image links when using WPTouch with W3 Total Cache

Note to Self, Page Performance, WordPress

No Comments


Share this post

In most of the posts on my client’s site, embedded images link to the actual image file. I’ve also enabled Web-App mode via WPTouch. In web-app mode images linked to their larger versions shouldn’t open; since Web-App mode has no back button, a user can follow a link to a image and become “stranded” there.

I’m also using W3 Total Cache, which appends the param string like “?9d7bd4″ to all my images. This makes sure that if you change your browser cache policies all users immediately see that change.

However, apparently the appended image string allows for the images to be clicked on and stranded. Interferes with whatever is stripping the image links.

Best way to avoid this:

Go to “Browser Cache.”

At the bottom, you have checked the following setting:

Prevent caching of objects after settings change
Whenever settings are changed, a new query string will be generated and appended to objects allowing the new policy to be applied.

This adds an appropriate string to the end of all images called through CDN or otherwise. Uncheck that box and purge/refresh the cache to see the difference.

Yay. Be stranded no more.

Read more

woo_image function reference

Page Performance, PHP, WordPress

No Comments


Share this post

This is not super well documented, and can frustrate the dickens out of you if you’re trying to get it to do some heavy image lifting outside of what your Woo Theme is programed to do out of the box. Took me a while just to find this sucker. It is located in /wp-content/themes/your_theme/functions/admin-functions.php

Read more

Don’t trust CloudFlare Google Analytics app

CDN, DNS, Page Performance

No Comments


Share this post

Let me start by saying I recommend the service. I’ve been using CloudFlare on a client’s site, and it’s been quite the handy service while I was battling some major memory issues with my Dreamhost VPN. I also dig the way it hooks up into my W3 Total Cache setup; its undoubtedly contributed to a zipper site.  So big ups for:

  • Globally-distributed network
  • Automatic static content caching
  • Always online

(The security claims I have not really investigated, but supposedly its protected us from nigh 5K “Known Threats”)

However, I have a bone to pick with the Google Analytics App. It’s broken, and the company knows it!

Read more