You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2016/01/22 18:35:39 UTC

[jira] [Commented] (TS-2642) header_rewrite Time based Rules

    [ https://issues.apache.org/jira/browse/TS-2642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15112747#comment-15112747 ] 

Leif Hedstrom commented on TS-2642:
-----------------------------------

I have a proposal for this, which is not quite as above, but e.g.

{code}
%{NOW}
%{NOW:HOUR}
%{NOW:DAY}
%{NOW:WEEKDAY}
{code}

etc. If this does not satisfies the needs here, we can add more to it later.


> header_rewrite Time based Rules
> -------------------------------
>
>                 Key: TS-2642
>                 URL: https://issues.apache.org/jira/browse/TS-2642
>             Project: Traffic Server
>          Issue Type: New Feature
>          Components: Performance, Plugins
>            Reporter: Faysal Banna
>            Assignee: Leif Hedstrom
>             Fix For: 6.2.0
>
>
> Hi Guys.
> with the great stuff in header_rewrite plugin there comes an issue which arises. 
> Header rewrite plugin can modify configurable options based upon the condition rules and logic we use inside it. 
> the feature am asking for is to add timing condition for those rules 
> example 
> cond %{time} >1600 [AND]
> cond %{time} <2000 
> cond %{time:day} =6
> ....
> .....
> ....
> .... [L]
> where day<= {0,...6} {Sunday...Saturday}
> for example between 20:00 and 23:59 set these conditional rules 
> other than this timing set other rules 
> that would be handy like for instance during high traffic hours of the day no background fill should be applied 
> during late night and early morning hours full background fill would be applied 
> and during medium traffic hours (16:00<->20:00) set background fill not to exceed 20sec 
> much regards 
> Faysal Banna



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)