|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
HennessyDotTech Smarty n00b
Joined: 31 Jan 2020 Posts: 1
|
Posted: Fri Jan 31, 2020 11:30 pm Post subject: {nocache} and cache_modified_check = true |
|
|
Using Smarty 3.1.34.
I'm using cache_modified_check = true so that Smarty will send a 304 when a page hasn't changed.
However, I have added a {nocache}{/nocache} section to one template. My expectation is that Smarty would send a 200 response along with the page for every request, since there is a portion of the page that isn't cached.
This isn't what happens, though. I get the 304 response on subsequent visits. The portion within the {nocache} doesn't change (obviously). I have to hit shift+refresh to get a 200 response along with the new page, which defeats the purpose.
Is cache_modified_check not compatible with {nocache}? |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|