[Plugin: W3 Total Cache] Attachment links' query strings interfering with jQuery detection
-
The W3 Total Cache plugin is really amazing.
I’ve got a CDN working with CloudFront and Amazon S3. Super easy to set up.
But now if I insert an image into a post, linked to the large version of itself, the link has an appended query string, like this:
http://mysite.s3.amazonaws.com/wp-content/uploads/2012/02/image.jpg?d4ad4My problem is that the query string seems to be confusing my jQuery popup plugin’s ability to realize that this image is a jpg.
Anyone know a way around this? The jQuery in question (in the Easy Fancybox plugin) uses the “Attribute Ends with” Selector in jQuery (http://api.jquery.com/attribute-ends-with-selector/) like this:
$('a[href$=".jpg"]')So, I suppose the query string just makes it so that that condition is no longer met.
The topic ‘[Plugin: W3 Total Cache] Attachment links' query strings interfering with jQuery detection’ is closed to new replies.