Expired cache date in the past.

Discuss Search Engine Optimization in relation to Joomla! 4.x. This forum will also have discussions on SEF/SEO Joomla! 4.x extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Sep 25, 2023 4:09 am

Expired cache date in the past.

Post by Richard_Gush » Mon Sep 25, 2023 4:21 am

Hi All,

I have an issue with my sites pages cache expire date being in the past which means none of my pages, are being saved in the DNS severs around the world, which giving my user a very bad user experience unfortunaly.
Where is this being set?

Thanks for your help in advance.

Content-type: text/html; charset=utf-8
Date: fri, 22 sep 2023 19:28:02 gmt
Expires: wed, 17 aug 2005 00:00:00 gmt
Screenshot 2023-09-23 at 7.29.52 AM.jpg
You do not have the required permissions to view the files attached to this post.

Joomla! Enthusiast
Joomla! Enthusiast
Posts: 152
Joined: Sat Sep 21, 2019 7:29 pm

Re: Expired cache date in the past.

Post by helpwithjoomla » Thu Sep 28, 2023 6:17 pm

What cache mechanism are you using? Joomla's System cache? Joomla's Page cache? Some other kind of cache?
Joomla Developers Available To Help With Joomla!

User avatar
Joomla! Hero
Joomla! Hero
Posts: 2517
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland

Re: Expired cache date in the past.

Post by ceford » Fri Sep 29, 2023 9:46 am

To answer your question: the cache headers are set in libraries/vendor/joomla/application/src/AbstractWebApplication.php on line 375 ff. This can be overridden by third party extensions.

However, I don't think you should alter this. If you open your browser developer tools and look at the Network tab you will see that the source document is 38Kb and is fetched every time. After first page load all other resources are cached, except some that are faulty.

I don't get a bad experience. What do you mean by bad experience?

Post Reply

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 4.x”