fix 304 handling