This is a plugin that lets you interact with the HTTP headers.
The plugin package is au.com.samad.java.jspwiki.plugin.HTTPHeader.
SECURITY WARNING:
Please note that installation and/or use of this feature on a public wiki is a security risk. This feature should only be used on a private or intranet wiki where the environment is entirely trusted.
Please note that installation and/or use of this feature on a public wiki is a security risk. This feature should only be used on a private or intranet wiki where the environment is entirely trusted.
Advanced features can be control from jspwiki.properties by setting jspwiki.plugin.HTTPHeader.Adv - this defaults to off. You must explicitly set it to ON to get access to advanced headers. If not set to ON, user only get access to Cache-Control, Pragma, Date, Age, ETag.
See also:
- Quick Reference to HTTP headers
- HTTP
from Wikipedia
- HTTP header-based security risks, see HTTP Header Injection
from Wikipedia
- Hypertext version of RFC 2616 Hypertext Transfer Protocol -- HTTP/1.1
Example#
You can use it like so:
[{HTTPHeader header='cache-control' value='no-cache'}]
[{HTTPHeader header='cache-control' value='no-store'}]
Apart from cache-control you can set pragma, Age, Etag
Discussion#
...
Add new attachment
List of attachments
| Kind | Attachment Name | Size | Version | Date Modified | Author | Change note |
|---|---|---|---|---|---|---|
java |
HTTPHeader.java | 12.7 kB | 2 | 21-Jul-2007 04:03 | Alex Samad | Source File |
jar |
HTTPPlugin.jar | 4.9 kB | 1 | 21-Jul-2007 04:03 | Alex Samad | New Version 2 of HTTPHeader |