For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Ketan_Kothari's avatar
Ketan_Kothari
Icon for Nimbostratus rankNimbostratus
Mar 02, 2017

Rewrite javascript URLs to append version at the end of F5CH=j

I have noticed that F5 BIGIP APM module rewrites the javascripts and appends F5CH=j to indicate that it is a javascript. I would like to rewrite these URLs to have version number embedded for e.g instead of F5CH=j it will be F5CH=jn where I can increment every time we upgrade the F5 version and therefore forcing the user's browser to download javascript again. This helps as user does not have to clear the cache when F5 versions are upgraded and APM module rewrite engine is updated making older javascript invalid.

 

I Was thinking to achieve this using iRule with something below. Let me know if there is a working e.g. to achieve this kind of URL rewrite.

 

when HTTP_RESPONSE { if { [HTTP::uri] ends_with "F5CH=j" } { // code to append 1 to HTTP::URI } }

 

No RepliesBe the first to reply