Tags:
create new tag
view all tags

modifyHeaderHandler( \%headers, $query )

  • \%headers - reference to a hash of existing header values
  • $query - reference to CGI query object
Lets the plugin modify the HTTP headers that will be emitted when a page is written to the browser. \%headers= will contain the headers proposed by the core, plus any modifications made by other plugins that also implement this method that come earlier in the plugins list.
$headers->{expires} = '+1h';

Note that this is the HTTP header which is not the same as the HTML <HEAD> tag. The contents of the <HEAD> tag may be manipulated using the TWiki::Func::addToHEAD method.

Since: TWiki::Plugins::VERSION 1.026

Topic revision: r1 - 2006-06-16 - MeredithLesly
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.