Forum Discussion
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 } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com