Add Headers

Description

Adds the ETag, Last-Modified, Expires and Cache-Control headers to HTTP responses generated by WordPress for more efficient caching.

NOTICE: THIS PLUGIN HAS BEEN DEPRECATED. IT IS NO LONGER SUPPORTED. IT IS NO LONGER TESTED WITH NEW WORDPRESS RELEASES. USING IT IN PRODUCTION IS NOT RECOMMENDED.

IT IS STRONGLY SUGGESTED TO MIGRATE TO OTHER MORE MODERN AND BETTER MAINTAINED PLUGINS.

IF YOU ARE STARTING A NEW BLOG, IT IS HIGHLY RECOMMENDED TO SEARCH FOR OTHER PLUGINS IN ORDER TO AVOID THE INEVITABLE FUTURE MIGRATION.

REGARDING EXISTING USERS, AT THE TIME OF WRITING, THERE ARE NO MAJOR BUGS. PROVIDED THAT THE WORDPRESS API DOES NOT CHANGE SOON, YOU HAVE THE TIME TO EXPERIMENT WITH OTHER PLUGINS AND PLAN YOUR MIGRATION.

Official Project Homepage

The Add-Headers documentation has been moved to the Add-Headers Development Web Site.

Support

Add-Headers is released without support of any kind.

Legal Notice

Add-Headers is Copyright (c) 2013-2016 George Notaras. All rights reserved.

Permission is granted to use this software under the terms of the GNU General
Public License version 3 or newer.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH
THE SOFTWARE.

Installation

Add-Headers can be easily installed through the plugin management interface of WordPress.

FAQ

Please read the Add-Headers FAQ at the development web site.

Reviews

Top

Works as expected, without any fuss and is very lightweight.

Thanks also for the very informative Wiki!

It simply works!

I did all the curl testing and it does what it says on the tin. It also solve some obscure Google/SEO compliance issues, but to understand this you really have to know how HTTP protocol works.

Read all 10 reviews

Contributors & Developers

“Add Headers” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

NOTICE: THIS PLUGIN HAS BEEN DEPRECATED. IT IS NO LONGER SUPPORTED. IT IS NO LONGER TESTED WITH NEW WORDPRESS RELEASES. USING IT IN PRODUCTION IS NOT RECOMMENDED.

IT IS STRONGLY SUGGESTED TO MIGRATE TO OTHER MORE MODERN AND BETTER MAINTAINED PLUGINS.

IF YOU ARE STARTING A NEW BLOG, IT IS HIGHLY RECOMMENDED TO SEARCH FOR OTHER PLUGINS IN ORDER TO AVOID THE INEVITABLE FUTURE MIGRATION.

REGARDING EXISTING USERS, AT THE TIME OF WRITING, THERE ARE NO MAJOR BUGS. PROVIDED THAT THE WORDPRESS API DOES NOT CHANGE SOON, YOU HAVE THE TIME TO EXPERIMENT WITH OTHER PLUGINS AND PLAN YOUR MIGRATION.

Changelog Entries

Please check out the changelog of each release by following the links below. You can also check the roadmap regarding future releases of the plugin.

  • 2.0.1
  • 2.0.0
    • IMPORTANT CHANGE OF THE DEFAULT FUNCTIONALITY: Since the v2.0.0 major release, no page is allowed to be cached by default. Caching needs to be enabled by configuring the plugin.
    • Improved the header generation mechanism. New header array format: ['HEADER_NAME'] => 'HEADER_VALUE'
    • Added the remove_pre_existing_headers option. When enabled, it instructs the plugin to clear any preexisting ETag, Last-Modified, Expires, Cache-Control and Pragma headers before sending its own headers, according to the user defined options.
    • Other minor fixes and improvements.
  • 1.2.1
    • Instead of Pragma: cache, now sends Pragma: public. This is not included in any standard. The public value is used by convention.
    • The array that holds the headers just before sending them to the clients now has proper keys for easier header isolation when filtering.
    • Fixed a small bug that happened whenever a taxonomy archive without any posts was visited.
  • 1.2.0
    • New option added: cache_max_age_seconds_for_authenticated_users initially set to 0 seconds. If you need cached content for authenticated users, adjust this accordingly.
    • The Pragma header is now also sent with a value of no-cache or cache according to Cache-Control header’s max-age.
  • 1.1.2
  • 1.1.1
    • Bug fix: In 1.1.0 two new filters had been added with wrong prefix in their names. This has been fixed in 1.1.1.
  • 1.1.0
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1