.

NoCacheCacheHeaderManager Class Reference

This cache header manager sends cache headers that forbid the client to cache. More...

Inheritance diagram for NoCacheCacheHeaderManager:
ICacheHeaderManager

List of all members.

Public Member Functions

  send_headers (&$content, $expirationdate, $lastmodifieddate)
  Send cache headers.

Detailed Description

This cache header manager sends cache headers that forbid the client to cache.

Definition at line 5 of file nocache.cacheheader.php.


Member Function Documentation

NoCacheCacheHeaderManager::send_headers ( &$  content,
expirationdate,
lastmodifieddate  
)

Send cache headers.

Parameters:
string  $content
timestamp  $expirationdate
timestamp  $lastmodifieddate

Implements ICacheHeaderManager.

Definition at line 13 of file nocache.cacheheader.php.

00013                                                                                         {
00014                 GyroHeaders::set('Pragma', 'no-cache', false);
00015                 GyroHeaders::set('Cache-Control', 'no-cache,no-store', false);
00016                 GyroHeaders::set('Last-Modified', '', false);
00017                 GyroHeaders::set('Expires', GyroDate::http_date(time() - GyroDate::ONE_DAY), false);    
00018         }       

The documentation for this class was generated from the following file: