PhastPress changelog
By Albert Peschar, on WordPress.org since 2017. 10,000+ active installs.
120 tagged releases, newest first. Dates are when each release was tagged in SVN. Notes come from the plugin's readme, which may not list every release.
-
3.14
No notes for this release in the current readme.
-
3.13
No notes for this release in the current readme.
-
- Bump “Tested up to” to WordPress 7.1.
-
- Improve script optimization compatibility with multisite installations, CDNs, and path-rewriting service proxies.
-
- WebP image compression support for sites served via Cloudflare.
- AVIF image compression support.
- Bump “Tested up to” to WordPress 7.0.
-
- Fix deprecation error due to implicitly marking parameters as nullable. (Thanks to Roberto Bösenberg!)
-
- Fix CVE-2025-14388. (Thanks to Angus G.!)
-
- Bump “Tested up to” to WordPress 6.8.
-
- Bump “Tested up to” to WordPress 6.7.
-
- Support Bedrock. (Thanks to @SandiyosDev!)
-
- Bump “Tested up to” to WordPress 6.6.
-
- Bump “Tested up to” to WordPress 6.5.
-
- Do not check SQLite version and do not require support for WITHOUT ROWID.
-
- Check that SQLite is version 3.8.2 or newer.
-
- Moved from deprecated \Requests to \WpOrg\Requests\Requests class.
- PhastPress now requires WordPress 6.2.
-
- Bump “Tested up to” to WordPress 6.4.
-
- Bump “Tested up to” to WordPress 6.3.
-
- In resource optimization service, stop wp-load.php as soon as WPINC is defined.
-
- Fix deprecation warnings in the control panel.
- Fix installation notice on dashboard.
- Fix deprecation warnings.
-
- Fix deprecation warnings.
-
- Fix fatal error on phastpress_disable if unconfigured.
-
- Prevent duplication of self-closing <meta charset> tags.
-
- Fix WordPress 6.2 compatibility.
-
- Bump “Tested up to” to WordPress 6.2.
-
- Set Content-Type: application/json header on bundler responses.
- Remove X-Robots-Tag header.
-
- Prevent undefined array index warning.
-
- Don’t defer Burst Statistics scripts.
-
- Bump “Tested up to” to WordPress 6.1.
- Set X-Robots-Tag: none header on bundler responses to prevent search engines from indexing them.
-
- Bump “Tested up to” to WordPress 6.0.2.
-
- Add nonce attributes to script tags generated by PhastPress itself.
-
- Add phastpress_csp_nonce filter.
-
- Clarity PDO_SQLITE requirement message.
-
- Improve CSP support.
- Use SQLite3 database for caching instead of a file tree.
-
- Update CA bundle.
-
- Require PHP 7.3.
- Don’t rewrite the URLs of dynamically inserted module scripts. This fixes compatibility with Presto Player.
-
- Ensure the security token never gets reset when the cache grows too large. This prevents resource URLs from changing suddenly.
-
- Prevent dark flash when OS dark mode is active but theme dark mode is disabled.
-
- Add missing file; simplify logic; improve log message.
-
- Prevent light flash when using the dark mode in the Twenty Twenty One theme, even when the page is large enough to trigger multiple renders.
-
- Prevent light flash when using the dark mode in the Twenty Twenty One theme.
-
- Send 403 and 404 status codes for unauthorized and not found resource URLs respectively, if they cannot be safely redirected to the original resource.
-
- Fix notice on undefined cspNonce variable.
-
- Avoid an issue with the Stop Spammers plugin preventing the install notice from being closed.
-
- Prefix async, defer attributes with data-phast- to please W3C validator.
-
- Update settings labels about IFrame lazy loading.
-
- Use native IFrame lazy loading.
-
- Deterministically generate security key based on WordPress secret keys. This avoids URLs changing when the cache is emptied.
-
- Fix open redirect on phast.php. This would allow a malicious person to redirect someone to a third-party site via phast.php by sending them a link. This can enable phishing attacks if the user is mislead by the hostname of the initial URL. It does not compromise the security of your site itself.
-
- Don’t emulate document.currentScript for scripts that are executed normally. This prevents some scripts from seeing the wrong currentScript accidentally.
-
- Do not rewrite <img> element src when it has a rev-slidebg class and points to transparent.png. This is because Revolution Slider‘s JavaScript depends on the image filename for its logic.
-
- Optimize AJAX responses generated by the quick view functionality in Flatsome theme.
-
- Optimize AJAX responses generated by YITH WooCommerce Quick View Pro.
-
- Optimize AJAX responses generated by YITH WooCommerce Quick View.
- Don’t optimize snippets if they look like JSON objects, ie, start with {".
-
- Support whitespace in url() in CSS. Eg, url( 'file.jpg' ) is not processed correctly.
-
- Make message about inability to override document.readyState a warning rather than an error, to avoid spurious complaints from PageSpeed Insights.
-
- Correctly support additional arguments when using setTimeout. This fixes a regression in version 1.83.
-
- Add phastpress_optimize_snippet function to allow arbitrary HTML to be optimized.
- Ensure error pages are always interpreted as UTF-8.
-
- Simplify PATH_INFO calculation if the environment variable is missing. This is now determined by splitting the path component of REQUEST_URI on .php/.
- Improve error messages, hopefully aiding troubleshooting when phast.php isn’t doing it’s job.
-
- Handle multisite installations in subdirectories.
-
- Fix handling of closing parenthesis and string literal separated by newline in JSMin.
-
- Disable PhastPress while editing with Oxygen Builder.
-
- Use text/plain MIME type for the bundled CSS and JS responses. This helps apply automatic response compression in some server configurations (specifically o2switch).
-
- Raise maximum page size to 2 MiB.
-
- Add compatibility for LiteSpeed Cache. PhastPress optimizations would not work before this.
-
- Detect WOFF2 support using a feature test, instead of relying on the user agent. This fixes Google Fonts on iOS 9 and earlier.
-
- Make sure setTimeout chains in DOMContentLoaded are completely executed before the load event is triggered. This fixes some uses of jQuery’s ready event.
-
- Use Base64-based path info for server-generated URLs.
-
- Encode characters that cannot occur in URLs. This fixes canonical URLs for optimized images if those URLs contained special characters.
-
- Delay NextGEN Gallery resource manager output buffer hook until after PhastPress deployment if WP Super Cache late init is enabled. This fixes an issue where footer scripts would disappear when NextGEN Gallery and WP Super Cache late init were used at the same time.
-
- Delay deployment until init hook if WP Super Cache late init is enabled. This fixes PhastPress optimizations being done on every load in WP Super Cache’s Simple mode, and not being done at all in Expert mode.
-
- Support document.currentScript in optimized scripts. (This fixed compatibility with PDF Embedder.)
- Prevent (suppressed) notice from ob_end_clean.
-
- Handle <!doctype html ...> declarations correctly, and don’t insert <meta charset> before them. (This broke pages using old XHTML doctypes.)
-
- Disable PhastPress when editing with WPBakery.
-
- Insert <meta charset=utf-8> tag right after <head> and remove existing <meta charset> tags. This fixes an issue where the <meta charset> tag appears more than 512 bytes into the document, causing encoding issues.
-
- Stop proxying external scripts like Google Analytics. This feature had no performance benefit, and its only purpose was to improve scores in old versions of PageSpeed Insights.
-
- Insert path separators (/) into bundler URLs in order to avoid Apache’s 255 character filename limit.
-
- Ignore calls to document.write from async or defer scripts, in line with normal browser behaviour.
-
- Apply phast_no_defer script attribute to scripts generated by wp_localize_script.
-
- Prevent direct access to bootstrap.php, low-php-version.php and files in classes directory. This is not a security risk, but could generate errors.
-
- Don’t defer AdThrive Ads scripts.
-
- Don’t resize images based on width/height attributes on img tags.
-
- Exclude cache from All-in-One WP Migration backups.
- Only process JPEG, GIF and PNG images. (Fix regression in 1.65.)
-
- Don’t defer GA Google Analytics scripts.
-
- Don’t defer Google Site Kit Analytics script.
- Add support for phast_no_defer script attribute.
-
- Add Last-Modified header to service response.
-
- Don’t use error suppression when checking query parameters, instead use isset. This prevents notices from appearing in some error logging plugins, even though they are suppressed.
-
- Fix CSS proxy URL generation not to include __p__ filename twice.
-
- Support URLs generated via Retina.js (when path info is enabled).
-
- Fix IE 11 stylesheet fallbacks.
-
- Convert <link onload="media='all'"> to <link media="all"> before inlining.
- Elide media attribute on generated style tags if it is all.
-
- Use path info URLs for bundler and dynamically inserted scripts.
- Don’t whitelist local URLs but check that the referenced files exist.
- Support BunnyCDN by optimizing resources on the CDN domain and loading processed resources via the CDN domain.
-
- Preserve control characters in strings in minified JavaScript.
- Use JSON_INVALID_UTF8_IGNORE on PHP 7.2+ instead of regexp-based invalid UTF-8 character removal.
-
- Images in AMP documents are now optimized. No other optimizations are performed in AMP documents.
-
- Add an option to lazy load images using native lazy loading (loading=lazy attribute). This is enabled by default.
-
- Added an option to disable gzip compression of processed resources downloaded via phast.php. This might help to fix issues on hosts that compress already compressed responses.
-
- Ensure that requestAnimationFrame callbacks run before onload event.
- Don’t rewrite anchor URLs (like #whatever) in CSS.
-
- Rewrite each URL in a CSS rule, not just the first one.
-
- Disable PhastPress during Asset Cleanup: Page Speed Booster analysis.
-
- Only rewrite image URLs in arbitrary attributes inside the <body> tag.
- Don’t optimize image URLs in attributes of <meta> tags.
- When optimizing images, send the local PHP version to the API, to investigate whether PHP 5.6 support can be phased out.
-
- Fix writing existing read-only cache files (on Windows).
-
- Fix caching on Windows by not setting read-only permissions on cache files.
- Add a checksum to cache files to prevent accidental modifications causing trouble.
-
- Rewrite image URLs in any attribute, as long as the URL points to a local file and ends with an image extension.
-
- Ignore link elements with empty href, or one that consists only of slashes.
- Replace </style inside inlined stylesheets with </ style to prevent stylesheet content ending up inside the DOM.
- Add font-swap: block for Ionicons.
- Remove UTF-8 byte order mark from inlined stylesheets.
-
- Fix release.
-
No notes for this release in the current readme.
-
- Improve compatibility with Nimble Page Builder and Child Theme Configurator.
-
- Send uncompressed responses to Cloudflare. Cloudflare will handle compression.
-
- Stop excessive error messages when IndexedDB is unavailable.
-
- Process image URLs in data-src, data-srcset, data-wood-src and data-wood-srcset attributes on img tags.
-
- This release should have updated Phast to version 1.47, but didn’t, by accident.
-
- Whitelist cdnjs.cloudflare.com for CSS processing.
-
- Use font-display: block for icon fonts (currently Font Awesome, GeneratePress and Dashicons).
-
- Support data-pagespeed-no-defer and data-cfasync="false" attributes on scripts for disabling script deferral (in addition to data-phast-no-defer).
- Leave data-{phast,pagespeed}-no-defer and data-cfasync attributes in place to aid debugging.
-
- Base64 encode the config JSON passed to the frontend, to stop Gtranslate or other tools from mangling the service URL that is contained in it.
-
- Speed up script load, and fix a bug with setTimeout functions running before the next script is loaded.
-
- Support compressed external resources (ie, proxied styles and scripts).
-
- Image optimization functionality works again. You will have to re-enable it in the settings panel.
- Add s.pinimg.com, google-analytics.com/gtm/js to script proxy whitelist.
-
- Remove blob script only after load. This fixes issues with scripts sometimes not running in Safari.
-
- Fixed a regression causing external scripts to be executed out of order.
-
- Clean any existing output buffer, instead of flushing it, before starting Phast output buffer.