Strange Bug
-
Hi,
You may not be able to help, but I have a strange bug when used with Varnish HTTP Cache. My site uses your Ajaxize plugin for 4 functions on the homepage, staff images, school images, testimonial text and recent news, https://primaryt.co.uk. I’ve told Varnish not to cache the functions, it shouldn’t anyway as it’s javascript, but every so often it caches and the result it sends back is “-1”. All I can imagine is that the function fails at one point and returns the “-1” as it can’t find the result, then Varnish will cache it as it doesn’t understand the response it received.
Ignoring all of the Varnish stuff above, my question is when would the plugin return a “-1” as the result? Also why would it do it on all of the 4 functions at the same time? If I can figure that out then I can make Varnish work around it. Ideally it would be best if it never got that response though ??
I should add that I’ve never once seen this response when bypassing the cache.
Cheers,
Ed
- The topic ‘Strange Bug’ is closed to new replies.