2

I have just upgrade my site to Joomla 3.6.2.

While submitting the url to Google for indexing, it's showing:

Downloaded HTTP response: Expires: Wed, 17 Aug 2005 00:00:00 GMT

The expiration is 2005, how to correct it?

I have jotcache enable, but there is no browser cache enabled.

1

Most likely this is set in your .htaccess file - check your .htaccess file for any entries that may cause this. If everything is OK with your .htaccess file, then try disabling JotCache to see if it's the one causing the problem (I highly doubt it though).

  • Even joomla.org has this expire header as 2005. It should not be coming from htaccess – Ruchika Sep 28 '16 at 3:22
1

It is in the file: public_html/libraries/src/Application/WebApplication.php

if (!$this->response->cachable)   
        {       // Expires in the past.
    $this->setHeader('Expires', 'Wed, 17 Aug 2005 00:00:00 GMT', true);

            // Always modified. 
    $this->setHeader('Last-Modified', gmdate('D, d M Y H:i:s') . ' GMT', true); 
    $this->setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0', false);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.