{"id":6056,"date":"2021-09-21T15:53:38","date_gmt":"2021-09-21T06:53:38","guid":{"rendered":"https:\/\/www.wexal.jp\/document-3-0-0\/pst-config-file\/pst-override-directive\/"},"modified":"2022-12-25T14:05:04","modified_gmt":"2022-12-25T05:05:04","slug":"pst-override-directive","status":"publish","type":"page","link":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-override-directive\/","title":{"rendered":"\"override\" Directive (3.0.0)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Basic_Coding\"><\/span>Basic Coding<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The following are the \"override\" directive coding rules.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"name\"><\/span>name<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specifies the setting identifier to override.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Type\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Value\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong><strong>identifier<\/strong><\/strong><\/td><td>Specify the identifier.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Example\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>overrides:\n- name: mobile pages<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"device\"><\/span>device<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specifies the device condition to override. If this condition is not specified, the directive will be ignored.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Type-2\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Value-2\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>pc<\/strong><\/td><td>Override when PC.<\/td><\/tr><tr><td><strong>mobile<\/strong><\/td><td>Override when mobile.<\/td><\/tr><tr><td><strong>tablet<\/strong><\/td><td>Override when tablet.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Example-2\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>overrides:\n- device: mobile<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"path\"><\/span>path<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specifies the URL path condition to override. If this condition is not specified, the directive will be ignored.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Type-3\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Value-3\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td><strong>path<\/strong><\/td><td>Specify the URL path.<br>You can use regular expressions.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Example-3\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>overrides:\n- path: .<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"if\"><\/span>if<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specifies the configuration condition to override. If this condition is not specified, the directive will be ignored.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Type-4\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (Numeric)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Value-4\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td>1<\/td><td>Enable the configuration.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Example-4\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>overrides:\n- if: 1<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"node\"><\/span>node<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specifies the type of directives to use for content optimization. If this condition is not specified, the directive will be ignored.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Type-5\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Scalar (String)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Value-5\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table><tbody><tr><td>lua<\/td><td>Use the \"lua\" directive.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Example-5\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>overrides:\n- node:\n  - lua<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"applied\"><\/span>applied<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specifies the directive selected in node. If this condition is not specified, the directive will be ignored.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Type-6\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Value-6\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Specify the selected directive in node. Refer to each \"directive\" for more information.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Example-6\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>overrides:\n- applied:\n    lua:\n      fcache:\n        enable: 0\n        exptime: 60\n      header_filter:\n      - cmd: wp remove header\n      body_filter:\n      - cmd: wp shorten url<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"patch\"><\/span>patch<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When the PST configuration file is output by the \"pst config ai\" command, the differences from the default directives are output to this key. This does not affect PST configuration, as it displays the differences.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Type-7\"><\/span>Type<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Sequence (Mapping)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Value-7\"><\/span>Value<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The patch output is based on the \"jsonpatch\" format.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Example-7\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>overrides:\n- patch:\n  - op: remove\n    path: \/lua\/body_filter\/2\/args\/scripts\/24\n  - op: replace\n    path: \/lua\/body_filter\/2\/args\/scripts\/10\/type\n    value: 'js &#91; jQuery is found in body ]'\n  - op: add\n    path: \/lua\/body_filter\/2\/args\/scripts\/1\/method\n    value: webfont<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Basic Coding The following are the \"override\" directive coding rules. name Specifies the setting identifier to override. Type Scalar (String) Value identifier Specify the identifier. Example device Specifies the device condition to override. If this condition is not specified, the directive will be ignored. Type Scalar (String) Value pc Override when PC. mobile Override when mobile. tablet Override when tablet. Example path Specifies the URL path condition to override. If this condition is not specified, the directive will be ignored. Type Scalar (String) Value path Specify the URL path.You can use regular expressions. Example if Specifies the configuration condition to override. If this condition is not specified, the directive will ... <\/p>\n<p class=\"read-more-container\"><a title=\"&quot;override&quot; Directive (3.0.0)\" class=\"read-more button\" href=\"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-override-directive\/#more-6056\" aria-label=\"Read more about &quot;override&quot; Directive (3.0.0)\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":6016,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"version":[16],"class_list":["post-6056","page","type-page","status-publish"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>&quot;override&quot; Directive (3.0.0) - WEXAL\u00ae Page Speed Technology<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-override-directive\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&quot;override&quot; Directive (3.0.0) - WEXAL\u00ae Page Speed Technology\" \/>\n<meta property=\"og:description\" content=\"Basic Coding The following are the &quot;override&quot; directive coding rules. name Specifies the setting identifier to override. Type Scalar (String) Value identifier Specify the identifier. Example device Specifies the device condition to override. If this condition is not specified, the directive will be ignored. Type Scalar (String) Value pc Override when PC. mobile Override when mobile. tablet Override when tablet. Example path Specifies the URL path condition to override. If this condition is not specified, the directive will be ignored. Type Scalar (String) Value path Specify the URL path.You can use regular expressions. Example if Specifies the configuration condition to override. If this condition is not specified, the directive will ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-override-directive\/\" \/>\n<meta property=\"og:site_name\" content=\"WEXAL\u00ae Page Speed Technology\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-25T05:05:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wexal.jp\/wp-content\/uploads\/2021\/10\/wexal_og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/pst-config-file\\\/pst-override-directive\\\/\",\"url\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/pst-config-file\\\/pst-override-directive\\\/\",\"name\":\"\\\"override\\\" Directive (3.0.0) - WEXAL\u00ae Page Speed Technology\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wexal.jp\\\/#website\"},\"datePublished\":\"2021-09-21T06:53:38+00:00\",\"dateModified\":\"2022-12-25T05:05:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/pst-config-file\\\/pst-override-directive\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/pst-config-file\\\/pst-override-directive\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/pst-config-file\\\/pst-override-directive\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documentation (3.0.0)\",\"item\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PST Configuration File (3.2.0)\",\"item\":\"https:\\\/\\\/www.wexal.jp\\\/en\\\/document-3-0-0\\\/pst-config-file\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\\\"override\\\" Directive (3.0.0)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wexal.jp\\\/#website\",\"url\":\"https:\\\/\\\/www.wexal.jp\\\/\",\"name\":\"WEXAL\u00ae Page Speed Technology\",\"description\":\"the best UX for all Websites.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wexal.jp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\"override\" Directive (3.0.0) - WEXAL\u00ae Page Speed Technology","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-override-directive\/","og_locale":"en_US","og_type":"article","og_title":"\"override\" Directive (3.0.0) - WEXAL\u00ae Page Speed Technology","og_description":"Basic Coding The following are the \"override\" directive coding rules. name Specifies the setting identifier to override. Type Scalar (String) Value identifier Specify the identifier. Example device Specifies the device condition to override. If this condition is not specified, the directive will be ignored. Type Scalar (String) Value pc Override when PC. mobile Override when mobile. tablet Override when tablet. Example path Specifies the URL path condition to override. If this condition is not specified, the directive will be ignored. Type Scalar (String) Value path Specify the URL path.You can use regular expressions. Example if Specifies the configuration condition to override. If this condition is not specified, the directive will ... Read more","og_url":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-override-directive\/","og_site_name":"WEXAL\u00ae Page Speed Technology","article_modified_time":"2022-12-25T05:05:04+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.wexal.jp\/wp-content\/uploads\/2021\/10\/wexal_og.png","type":"image\/png"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-override-directive\/","url":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-override-directive\/","name":"\"override\" Directive (3.0.0) - WEXAL\u00ae Page Speed Technology","isPartOf":{"@id":"https:\/\/www.wexal.jp\/#website"},"datePublished":"2021-09-21T06:53:38+00:00","dateModified":"2022-12-25T05:05:04+00:00","breadcrumb":{"@id":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-override-directive\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-override-directive\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/pst-override-directive\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.wexal.jp\/en\/"},{"@type":"ListItem","position":2,"name":"Documentation (3.0.0)","item":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/"},{"@type":"ListItem","position":3,"name":"PST Configuration File (3.2.0)","item":"https:\/\/www.wexal.jp\/en\/document-3-0-0\/pst-config-file\/"},{"@type":"ListItem","position":4,"name":"\"override\" Directive (3.0.0)"}]},{"@type":"WebSite","@id":"https:\/\/www.wexal.jp\/#website","url":"https:\/\/www.wexal.jp\/","name":"WEXAL\u00ae Page Speed Technology","description":"the best UX for all Websites.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wexal.jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/pages\/6056","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/comments?post=6056"}],"version-history":[{"count":3,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/pages\/6056\/revisions"}],"predecessor-version":[{"id":6383,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/pages\/6056\/revisions\/6383"}],"up":[{"embeddable":true,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/pages\/6016"}],"wp:attachment":[{"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/media?parent=6056"}],"wp:term":[{"taxonomy":"version","embeddable":true,"href":"https:\/\/www.wexal.jp\/en\/wp-json\/wp\/v2\/version?post=6056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}