Commit 031475f7 authored by Jim Birch's avatar Jim Birch Committed by Damien McKenna
Browse files

Issue #3077772 by DamienMcKenna, thejimbirch, volkswagenchick, cindytwilliams:...

Issue #3077772 by DamienMcKenna, thejimbirch, volkswagenchick, cindytwilliams: Add new meta tags: pragma, cache-control, expires (D8)
parent c40bcf2e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@ Metatag 8.x-1.x-dev, xxxx-xx-xx
  Refresh.
#3077776 by DamienMcKenna, thejimbirch, cindytwilliams: Add new meta tag:
  Revisit-After.
#3077772 by DamienMcKenna, thejimbirch, volkswagenchick, cindytwilliams: Add new
  meta tags: pragma, cache-control, expires.


Metatag 8.x-1.10, 2019-08-29
+9 −0
Original line number Diff line number Diff line
@@ -5,6 +5,9 @@
metatag.metatag_tag.abstract:
  type: text
  label: 'Abstract'
metatag.metatag_tag.cache_control:
  type: label
  label: 'Cache control'
metatag.metatag_tag.canonical_url:
  type: label
  label: 'Canonical URL'
@@ -14,6 +17,9 @@ metatag.metatag_tag.content_language:
metatag.metatag_tag.description:
  type: text
  label: 'Description'
metatag.metatag_tag.expires:
  type: label
  label: 'Expires'
metatag.metatag_tag.generator:
  type: label
  label: 'Generator'
@@ -32,6 +38,9 @@ metatag.metatag_tag.next:
metatag.metatag_tag.original_source:
  type: label
  label: 'Original source'
metatag.metatag_tag.pragma:
  type: label
  label: 'Pragma'
metatag.metatag_tag.prev:
  type: label
  label: 'Previous page URL'
+22 −0
Original line number Diff line number Diff line
<?php

namespace Drupal\metatag\Plugin\metatag\Tag;

/**
 * The Cache Control meta tag.
 *
 * @MetatagTag(
 *   id = "cache_control",
 *   label = @Translation("Cache control"),
 *   description = @Translation("Used to control whether a browser caches a specific page locally. Not commonly used. Should be used in conjunction with the Pragma meta tag."),
 *   name = "cache-control",
 *   group = "advanced",
 *   weight = 10,
 *   type = "label",
 *   secure = FALSE,
 *   multiple = FALSE
 * )
 */
class CacheControl extends MetaNameBase {
  // Nothing here yet. Just a placeholder class for a plugin.
}
+22 −0
Original line number Diff line number Diff line
<?php

namespace Drupal\metatag\Plugin\metatag\Tag;

/**
 * The Expires meta tag.
 *
 * @MetatagTag(
 *   id = "expires",
 *   label = @Translation("Expires"),
 *   description = @Translation("Control when the browser's internal cache of the current page should expire. The date must to be an <a href='http://www.csgnetwork.com/timerfc1123calc.html'>RFC-1123</a>-compliant date string that is represented in Greenwich Mean Time (GMT), e.g. 'Thu, 01 Sep 2016 00:12:56 GMT'. Set to '0' to stop the page being cached entirely."),
 *   name = "expires",
 *   group = "advanced",
 *   weight = 11,
 *   type = "label",
 *   secure = FALSE,
 *   multiple = FALSE
 * )
 */
class Expires extends MetaNameBase {
  // Nothing here yet. Just a placeholder class for a plugin.
}
+22 −0
Original line number Diff line number Diff line
<?php

namespace Drupal\metatag\Plugin\metatag\Tag;

/**
 * The Pragma meta tag.
 *
 * @MetatagTag(
 *   id = "pragma",
 *   label = @Translation("Pragma"),
 *   description = @Translation("Used to control whether a browser caches a specific page locally. Not commonly used. Should be used in conjunction with the Cache-Control meta tag."),
 *   name = "pragma",
 *   group = "advanced",
 *   weight = 12,
 *   type = "label",
 *   secure = FALSE,
 *   multiple = FALSE
 * )
 */
class Pragma extends MetaNameBase {
  // Nothing here yet. Just a placeholder class for a plugin.
}
Loading