-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathocubom_html.yaml
28 lines (26 loc) · 1.21 KB
/
ocubom_html.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ocubom_html:
# Register Ocubom/TwigHtmlExtension to minify the HTML (defaults)
compress:
force: false
level: smallest
# Headers extract
# The listener is only registered if some header is registered
#headers:
# # Duplicate robots meta as X-Robots-Tag
# # @see https://developers.google.com/search/docs/advanced/robots/robots_meta_tag#xrobotstag
# - name: 'X-Robots-Tag'
# pattern: '@[\p{Zs}]*<meta\s+(?:name="robots"\s+content="([^"]+)"|content="([^"]+)"\s+name="robots")\s*/?\s*>\p{Zs}*\n?@i'
# value: '%2$s'
# replace: '%1$s'
# formats:
# - 'text/html'
#
# # Disable Metro Interface
# # @see https://github.com/h5bp/html5-boilerplate/blob/5.3.0/dist/doc/extend.md#prompt-users-to-switch-to-desktop-mode-in-ie10-metro
# - name: 'X-UA-Compatible'
# enabled: true
# pattern: '@[\p{Zs}]*<meta\s+(?:http-equiv="X-UA-Compatible"\s+content="([^"]+)"|content="([^"]+)"\s+http-equiv="X-UA-Compatible")\s*>\p{Zs}*\n?@i'
# value: '%2$s'
# replace: '' # Delete the meta tag as is not standard
# formats:
# - 'text/html'