fix bugs when response code 304 and when filter enabled