adding 304 logic for redirect