Handle HTTP_RESPONSE status: 304 for static content
Hi all,
I have a question about handling http 304 responses for some static content from a server behind our BIG IP LTM 3900 with ssl offloading.
situation: client --> BIG-IP_LB (https) --> webserver_pool (http)
The client accesses a webapp via the loadbalancer using http which gets redirected to https via a basic irule.
WHEN HTTP_REQUEST {
HTTP::REDIRECT "https://[HTTP::HOST][HTTP::uri]
}
After logging in some stylesheets/content is missing like css/js/image/png/jpg files. When troubleshooting i notice that the server/loadbalancer returns a 304 on this content with no-cache headers. I tried to work around this by attempting to rewrite the response codes from 304 to 200, experimented by using http profiles with ram cache, tried to modify the no-cache header but none off these options seem to work. I assume there must be a easy way to get around this. When using plain http via the LB everything works fine. Any idea how to fix this?
LTM log: Apr 8 13:12:57 local/tmm1 info tmm1[4972]: Rule tshoot-log : Virtual: VAppServer_443, Client 192.168.1.191:65068 -> webapp.company.local/one/themes/style.css -> (response) - status: 304 Apr 8 13:12:57 local/tmm1 info tmm1[4972]: Rule tshoot-log : Server: Apache-Coyote/1.1 Apr 8 13:12:57 local/tmm1 info tmm1[4972]: Rule tshoot-log : Pragma: No-cache Apr 8 13:12:57 local/tmm1 info tmm1[4972]: Rule tshoot-log : Cache-Control: no-cache Apr 8 13:12:57 local/tmm1 info tmm1[4972]: Rule tshoot-log : Expires: Fri, 01 Jan 1970 01:00:00 CST Apr 8 13:12:57 local/tmm1 info tmm1[4972]: Rule tshoot-log : P3P: CP="ALL" Apr 8 13:12:57 local/tmm1 info tmm1[4972]: Rule tshoot-log : ETag: W/"1015-1288336220000" Apr 8 13:12:57 local/tmm1 info tmm1[4972]: Rule tshoot-log : Date: Tue, 08 Apr 2014 11:12:53 CST Apr 8 13:12:57 local/tmm1 info tmm1[4972]: Rule tshoot-log : Connection: keep-alive