Changeset 2942087
- Timestamp:
- 07/23/2023 12:41:51 PM (13 months ago)
- Location:
- fast404
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
fast404/trunk/composer.json
r2497196 r2942087 1 1 { 2 2 "name": "phpwatch/wordpress-fast404", 3 "description": "WordPress plugin to prevent WordPress from deliver ying full Page-Not-Found errors when the browser is not expecting a full HTML page. Saves bandwidth and improves performance.",4 "type": "wordpress- plugin",3 "description": "WordPress plugin to prevent WordPress from delivering full Page-Not-Found errors when the browser is not expecting a full HTML page. Saves bandwidth and improves performance.", 4 "type": "wordpress-plugin", 5 5 "license": "GPL-2.0-or-later", 6 6 "keywords": ["wordpress", "performance", "404"], ��� … 13 13 "minimum-stability": "stable", 14 14 "require": { 15 "php": "^7.1 "15 "php": "^7.1" 16 16 }, 17 17 "authors": [ -
fast404/trunk/fast404.php
r2497196 r2942087 3 3 /** 4 4 * Plugin Name: Fast 404 5 * Version: 1. 15 * Version: 1. 6 6 * Description: Prevent WordPress from delivering full Page-Not-Found errors when the browser is not expecting a full HTML page. Saves bandwidth and improvements performance. 7 7 * Licence: GPLv2 or later 8 8 * Author: Ayesh Karunaratne 9 * Author URI: https://aye .sh/open-source9 * Author URI: https://aye/open-source 10 10 */ 11 11 … … 27 27 * 28 28 * If the regex is not provided, we need to immediately exit. Next, the $accept_header is checked for a simple string 29 * match for the allowed mime. It is not configurable as ofyet to prevent user-errors, and a regex is not used for29 * match for the allowed mime. It is not configurable yet to prevent user-errors, and a regex is not used for 30 30 * performance. If both these conditions are met, the main expression is evaluated, and if it matches, tries to exclude 31 31 * if an exclude expression is configured. -
fast404/trunk/readme.txt
r2497196 r2942087 3 3 Tags: performance, 404, page-not-found 4 4 Requires at least: 3.9.2 5 Tested up to: 5.76 Stable tag: 1. 15 Tested up to: 6 Stable tag: 1. 7 7 Requires PHP: 7.1 8 8 License: GPLv2 or later … … 13 13 == Description == 14 14 15 Fast 404 is a low foot-print plugin that quickly inspects an incoming HTTP request, and terminates the request as soon as possible if the request is for a non-existing resource. If the browser is expecting an HTML page (indicated by the `Accept` HTTP header), this plugin will not intercept it. For all other requests, this plugin will terminate it immed aitely, saving server resources and bandwidth.15 Fast 404 is a low foot-print plugin that quickly inspects an incoming HTTP request, and terminates the request as soon as possible if the request is for a non-existing resource. If the browser is expecting an HTML page (indicated by the `Accept` HTTP header), this plugin will not intercept it. For all other requests, this plugin will terminate it immedtely, saving server resources and bandwidth. 16 16 17 17 When a user browser requests a resource (such as a `jpg` image, or a `.woff2` font file), the web server sends this resource if it is available in the requested location. If the file does not exist, the request is forwarded to WordPress to handle. Unless you are using a plugin that dynamically generates these files, these file-not-found requests trigger a full WordPress Page-Not-Found error page. This plugin inspects such incoming requests, and if the browser indicates that it is looking for a resource other than an HTML page, this plugin terminates the request as soon as possible to prevent WordPress from serving this request which would be a waste of resources and bandwidth. This plugin carefully makes sure that the short-circuited 404 pages (which just shows "Not Found" on a blank page) is only returned to browser asset requests, and not for end users who expect an HTML page. … … 19 19 By default, all HTTP requests to `js|css|jpg|jpeg|gif|png|webp|ico|exe|bin|dmg|woff|woff2` extensions will be fast 404'd. You can configure the extensions and even configure an exclusion pattern to prevent this plugin from intercepting certain requests. 20 20 21 This plugin is the WordPress port of [ phpwatch/fast404](https://github.com/PHPWatch/Fast404) package.21 This plugin is the WordPress port of [ast404](https://github.com/PHPWatch/Fast404) package. 22 22 23 23 == Installation == … … 61 61 * Initial release. 62 62 63 = 1.1 = 64 * Update supported WordPress versions 63 = 1.0.1 = 64 * Updates the WordPress core version this plugin was tested against. 65 * Minor text improvements. 66 67 = 1.2 = 68 * Same version as 1.0.1, but with a consistent version number bump.
Note: See TracChangeset
for help on using the changeset viewer.