Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Client Cache deactivated after plugin activation
Hi, I got a problem with some contact forms in general, these four create a session header(token)
GetSimple Contact
Simple C(ontact)
Contact Form
After activating one of these (tested each one after another) I got this when testing the HTTP Header:
Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache
No client cache at all at the entire website,
Is this really the expected behavior? Another stupid queston, is there a way to turn on off a plugin on page or template base?
Thanks to anyone in advance
When using sessions, php will send these.
i18n_base uses session_start, as do other plugins.

you might be able to set before, but I am not really sure what the complete effect will be.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Thank you, that did it, for whom has got the same problem modify line right after <?php to something like
if (session_id() == '') {

My tests showed no sie effects, but sure there is a posibility to have ones,
I´ll try when I got the time to make a template file just for the contact form and include the no-cache setting in the header of that template file to prevent client caching for the contact form.
Besides that little problem that annoyed me a bit I´m absolutely happy with Get Simple, Lean, Fast and supereasy to make your own template, try that with wordpress or even joomla......
Heres the docs
However, It fails to explain why these settings exist of for what desired purpose they serve, I mean specifically of course.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Well, I guess the purpose is to have the possibility to control caching if needed.
In my case that contact form session caused a no-cache at all pages, which I don´t want to, my site ( is quite heavy, some large photos.... caching is a must I think, and google site speed also complains if caching switched of.
Nice would be to have the possibility to activate certain plugins just for the desired page where you need/want the plugin.
I mean for each option, what scenario they exist for or what desired function you use them for, that is left to figure out per specific design or requirement.

If your session is for security, it could create issues forcing cache on for example.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix

Users browsing this thread: 1 Guest(s)