
One thing I notice is that in session_cache_limiter() it is "nocache", but in header() it is "no-cache".
#Magento 2 set private cache manual
I didn't find these combinations like "private, must-revalidate" documented in the manual and I guess that something different from "none, nocache, private, public and private_no_expire" are resolved to "none" or something like that. The content must be fresh after each click. The page only updates when I used the browser's refresh button. When I try something like session_cache_limiter("nocache, must-revalidate") it doesn't work. The combination above works fine with IE 6.x. I try some combinations using header("Cache-Control: no-cache, must-revalidate"), but when clicking the back button, the last changes in the form back to their previous states. If you have a dinamic website and want to allow your visitors to use the back button after they sent a form with the post method, the best combination I found was: You can find more information about to control the cache in PHP at Request (and before session_start() is called). The cache limiter is reset to the default value stored inĪt request startup time. Setting the cache limiter to '' will turn off automatic sending

TheĮxpire header is never sent to the client in this mode. You can avoid this problem by using private_no_expire mode. May cause confusion for some browsers, including Mozilla. In private mode, the Expire header sent to the client


Limiter to nocache disallows any client/proxy caching.Ī value of public permits caching by proxies and theĬlient, whereas private disallows caching by proxiesĪnd permits the client to cache the contents. May be cached by the client and intermediate proxies. These headers determine the rules by which the page content The cache limiter defines which cache control HTTP headers are sent to Session_cache_limiter() returns the name of the Session_cache_limiter( ? string $value = null): string| false
#Magento 2 set private cache archive
Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Context options and parameters Supported Protocols and Wrappers Security Introduction General considerations Installed as CGI binary Installed as an Apache module Session Security Filesystem Security Database Security Error Reporting User Submitted Data Hiding PHP Keeping Current Features HTTP authentication with PHP Cookies Sessions Dealing with XForms Handling file uploads Using remote files Connection handling Persistent Database Connections Command line usage Garbage Collection DTrace Dynamic Tracing Function Reference Affecting PHP's Behaviour Audio Formats Manipulation Authentication Services Command Line Specific Extensions Compression and Archive Extensions Cryptography Extensions Database Extensions Date and Time Related Extensions File System Related Extensions Human Language and Character Encoding Support Image Processing and Generation Mail Related Extensions Mathematical Extensions Non-Text MIME Output Process Control Extensions Other Basic Extensions Other Services Search Engine Extensions Server Specific Extensions Session Extensions Text Processing Variable and Type Related Extensions Web Services Windows Only Extensions XML Manipulation GUI Extensions Keyboard Shortcuts ? This help j Next menu item k Previous menu item g p Previous man page g n Next man page G Scroll to bottom g g Scroll to top g h Goto homepage g s Goto search
