Added explicit 304 handling in the API events query