Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.24 KB

File metadata and controls

41 lines (28 loc) · 1.24 KB

Headers component theme

The Headers component theme for Cecil provides support of _headers file generation.

After installation and without any configuration, this component theme generate a _headers file containing HTTP headers created by Cecil (generated from headers' configuration).

Services that support the _headers file:

Installation

composer require cecil/theme-headers

Or download the latest archive and uncompress its content in themes/headers.

Usage

Add headers in the theme section of your site configuration:

theme:
  - headers

Add headers

server:
  headers:
    - path: <path> # Relative path, prefixed with a slash. Support "*" wildcard.
      headers:
        - key: <key>
          value: "<value>"

Documentation: https://cecil.app/documentation/configuration/#server-headers