From eadf327a9a1fddf84289355564decc0ab9cd3c81 Mon Sep 17 00:00:00 2001 From: Robin Dirksen Date: Tue, 27 Jun 2023 10:04:39 +0200 Subject: [PATCH] Remove default lastModificationDate = now() (#510) Based on the latest Google' Search documentation (https://developers.google.com/search/blog/2023/06/sitemaps-lastmod-ping#the-lastmod-element) > Second, it needs to consistently match reality: if your page changed 7 years ago, but you're telling us in the lastmod element that it changed yesterday, eventually we're not going to believe you anymore when it comes to the last modified date of your pages. --- src/Tags/Url.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Tags/Url.php b/src/Tags/Url.php index 2fec105..a092a71 100644 --- a/src/Tags/Url.php +++ b/src/Tags/Url.php @@ -41,8 +41,6 @@ public function __construct(string $url) { $this->url = $url; - $this->lastModificationDate = Carbon::now(); - $this->changeFrequency = static::CHANGE_FREQUENCY_DAILY; }