Forum Discussion
JRahm
Admin
Jan 22, 2026AppWorld DC Booth Kiosk Generator
Welcome to AppWorld, community! You may or may not be with us in person, but you can watch this thread for iRules that are either generated or described by the Distributed Cloud AI Assistant.
1 Reply
- JimmyPackets
Altostratus
AI-Generated iRule
Prompt: Compress HTTP responses only for clients that send an Accept-Encoding: gzip header and for text content types
Generated iRule (by F5 Distributed Cloud AI Assistant):
when HTTP_REQUEST { # Check if the client sent an Accept-Encoding header with gzip if {[HTTP::header "Accept-Encoding"] contains "gzip"} { # Check if the content type is text if {[HTTP::header "Content-Type"] starts_with "text/"} { # Enable gzip compression for the response HTTP::header insert "Content-Encoding" "gzip" # Compress the response body set response_body [HTTP::response body] set compressed_body [gzip $response_body] HTTP::response body $compressed_body } } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects