Forum Discussion
hooleylist
May 04, 2012Cirrostratus
Who/what is appending the "?expire" string? If there is already a query string in the URI, it would be appended with an ampersand like author.html?page=4&expire. If you want to remove expire from the query string you could use string map:
if { [string tolower [HTTP::query]] ends_with "expire" } {
log "Request to expire [HTTP::path] received."
set expire_cache_trigger 1
Remove expire from the query string
HTTP::uri [string range [HTTP::uri] 0 end-7]
}
Aaron