ProxySG Content Policy Language Guide
150
weekday=
Tests if the day of the week is in the specified range or an exact match. By default, the ProxySG
appliance’s date is used to determine the day of the week. To specify the UTC time zone, use the form
weekday.utc=. The numeric pattern used to test the weekday= condition can contain no whitespace
Syntax
weekday[.utc]={[first_weekday]..[last_weekday]|exact_weekday}
where:
•
first_weekday—An integer from 1 to 7, where 1 specifies Monday and 7 specifies Sunday,
indicating the first day of the week that tests true. If left blank, Monday is assumed.
•
last_weekday—An integer from 1 to 7, where 1 specifies Monday and 7 specifies Sunday,
indicating the last day of the week that tests true. If left blank, Sunday is assumed.
•
exact_weekday—An integer from 1 to 7, where 1 specifies Monday and 7 specifies Sunday,
indicating the day of the week that tests true.
Note: When you want to test a range that wraps from one week into the next, the following
shorthand expression is available. While
weekday=(..1|6..) specifies a long weekend that
includes Monday, the policy language also recognizes
weekday=6..1 as equivalent.
Layer and Transaction Notes
• Use in all layers.
• Using time-related conditions to control caching behavior in a
<Cache> layer may cause thrashing
of the cached objects.
• Applies to all transactions.
Examples
; Test for the weekend.
weekday=6..7
; Test for Saturday through Monday.
weekday=6..1
See Also
• Conditions:
date[.utc]=, day=, hour=, minute=, month=, time=, year=