API16:JResponse/allowCache
Contents |
Description
Set/get cachable state for the response.
Description:JResponse/allowCache
Syntax
static allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
public static function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[Edit See Also] SeeAlso:JResponse/allowCache
Examples
<CodeExamplesForm />
Override Default Headers
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
Expires: Mon, 1 Jan 2001 00:00:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre- check=0 Pragma: no-cache
to
Expires: ~in five hours~ Cache-Control: public Pragma: public
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.
JResponse::allowCache(true); JResponse::setHeader('Pragma', 'public',true); JResponse::setHeader('Cache-Control','public',true); JResponse::setHeader('Expires', gmdate('D, d M Y H:i:s', time() +(60*60*5)) . ' GMT',true);
Set/get cachable state for the response
[<! removed edit link to red link >]
<! removed transcluded page call, red link never existed >
Syntax
allowCache($allow=null)
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
Returns
boolean True of browser caching should be allowed
Defined in
libraries/joomla/environment/response.php
Importing
jimport( 'joomla.environment.response' );
Source Body
function allowCache($allow = null) { if (!is_null($allow)) { $GLOBALS['_JRESPONSE']->cachable = (bool) $allow; } return $GLOBALS['_JRESPONSE']->cachable; }
[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >
Examples
<CodeExamplesForm />
{{Expansion depth limit exceeded}}Override Default Headers
From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change Invalid tag extension name: <span class="error">expansion depth limit exceeded</span> to Invalid tag extension name: <span class="error">expansion depth limit exceeded</span>
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me. Invalid tag extension name: <span class="error">expansion depth limit exceeded</span>
Set/get cachable state for the response
Invalid tag extension name: <span class="error">expansion depth limit exceeded</span>
<! removed transcluded page call, red link never existed >
<span class="error">Expansion depth limit exceeded Invalid tag extension name: <span class="error">expansion depth limit exceeded</span>
| Parameter Name | Default Value | Description |
|---|---|---|
| $allow | null | $allow |
<span class="error">Expansion depth limit exceeded boolean True of browser caching should be allowed
<span class="error">Expansion depth limit exceeded libraries/joomla/environment/response.php <span class="error">Expansion depth limit exceeded Invalid tag extension name: <span class="error">expansion depth limit exceeded</span>
<span class="error">Expansion depth limit exceeded Invalid tag extension name: <span class="error">expansion depth limit exceeded</span>
Invalid tag extension name: <span class="error">expansion depth limit exceeded</span> <! removed transcluded page call, red link never existed >
<span class="error">Expansion depth limit exceeded <CodeExamplesForm /> Invalid tag extension name: <span class="error">expansion depth limit exceeded</span>

From: http://groups.google.com/group/joomla-dev-general/browse_thread/thread/6ef5fe7eba4efc26
How can I override the default joomla headers from within a custom component? I would like to change
to
JResponse::allowCache(true) did the trick. If it helps anyone else, here is the code that worked for me.