SetBrowserCache
Prev | PHPlot Function Reference | Next

## SetBrowserCache

SetBrowserCache — Control browser-side image caching

## Synopsis

    $plot->SetBrowserCache($browser_cache)

## Description

`SetBrowserCache` controls whether to allow the browser to cache the image generated by PHPlot. By default, PHPlot sends out HTTP headers to tell the browser not to cache the generated image, since it is assumed that the image is generated from dynamic data and a cached copy would not be accurate. You can use this function to allow the browser to cache the image.

## Parameters

`$browser_cache`

  True to allow the browser to cache the image; False to not allow the browser to cache the image.

Prev | Up | Next
SetBgImage | Home | SetCallback