Hi Chris,
Apologies for the delay here.
Thank you for your detailed report, I’m afraid that I’m unable to clear this up for you much without consulting the developers for further information.
I will forward this thread to them and get back to you when I get some insight from them.
Cheers,
Predrag
Hello,
Just checking in on this.
Thanks,
-Chris
Hmm,
4 weeks without any reply.
Bummer 🙁
-Chris
Hi Chris,
Apologies for the delay, our developers are having issues with replicating this and I’m still waiting for further information from them.
I just pinged them again and hopefully there will be some good news soon.
Cheers,
Predrag
No problem,
Here are my steps to reproduce.
1. fresh install of wordpress (I use the default docker container with mariadb)
2. open site’s mainpage in chrome, open chrome devtools, click network, click the main html file, look at “Headers”, notice under “Response Headers” there is no “Expires” header.
3. install and activate the “Custom Sidebars” plugin
4. refresh the site’s mainpage and look at the headers again, notice there is now an “Expires” header set to “Expires:Thu, 19 Nov 1981 08:52:00 GMT”
5. deactivate the “Custom Sidebars” plugin
6. refresh the site’s mainpage and look at the headers again, notice the “Expires” header is gone.
As noted earlier, this is from the plugin creating a php session for all users.
In php if a session is created, it defaults to expiring the page to prevent sessions from caching.
Let me know if you have any other questions about replicating the issue.
Thanks,
-Chris
Hi Chris,
Our developers are currently working on some improvements for this on next release and in the meantime adding below code to your wp-config.php should do the trick:
define( 'WDEV_USE_SESSION', false );
Cheers,
Predrag
Thanks so much for the update to the plugin!
Things working great!
-Chris
Awesome! Thanks for getting back to us with the status, have a nice day!
Predrag