Forum Discussion
iRule causing requests to be duplicated (sometimes)
We are using an iRule to manage access to a SPA, which requires REWRITE to be disabled. Without this rule the SPA application does not work. However, when the rule is enabled we are seeing duplication of requests within our other (non SPA) applications. We notice this especially with file uploads and SQL insert requests. If we remove the iRule the non SPA applications work correctly, but the SPA application does not.
Here is the iRule.
-----
when REWRITE_REQUEST {
if {[HTTP::uri] starts_with "/apps/appname/uid/sso"} {
REWRITE::disable
}
}
when REWRITE_REQUEST_DONE {
if {[HTTP::uri] starts_with "/uid"} {
REWRITE::disable
}
if {[HTTP::uri] starts_with "/apps/appname/uid/sso"} {
REWRITE::disable
}
REWRITE::post_process 1
}
2 Replies
- Seattle2k
Employee
"REWRITE_REQUEST" is not a valid iRule event. Master List of iRule Events
What is an SPA / SPA application?
- pcargill
Nimbostratus
Single Page Application
To allow the application to work correctly we need to disable rewrite.
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