这是indexloc提供的服务,不要输入任何密码
Skip to content

Cookie Writer: Allow customization of expiration date #22422

@zhouyx

Description

@zhouyx

The cookeWriter feature allow publisher to write cookie on the origin.

Right now, the expiration date is by default set to 1 year. We need to provide a way for publisher's to customize the cookie expiration date.

Proposed configuration

  'cookies': {
    'cookieMaxAge': 365*24*3600,
    'keyValue1': {
      'value': 'QEURY_PARAM(fake1)',
    }
  },

cookieMaxAge accepts a number unit in second. Which is the cookie will be expired after that amount of time.

Put cookieMaxAge: 604800 (604800=606024*7) if one wants the cooke to expire after 7 days.

cc @zikas

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions