Connect middleware that preemptively 304s