fixed HTTP cache headers when a 304 is sent (closes #179)