Linux 软件免费装
Banner图

Static Porter

开发者 kturgutoglu
Kayıhan Turgutoğlu
Kaya Turk
更新时间 2026年10月22日 06:29
PHP版本: 7.0 及以上
WordPress版本: 7.1.3
版权: GPLv2 or later
版权网址: 版权信息

标签

performance cdn amazon s3 cloudflare static site generator

下载

4.1.0 4.2.0 3.5.2 4.2.2 3.5.6 3.5.4 3.5.5 4.0.0 3.5.7 4.2.1 4.3.0

详情介绍:

Static Porter turns your WordPress site into pre-built HTML files, so visitors get instant page loads without your server ever touching PHP or a database. Most caching plugins just speed up WordPress. Static Porter goes further: it generates a real, physical copy of your site that can be served on its own — from your own server via Apache, from Cloudflare's global edge network, from an AWS S3 bucket behind CloudFront, or as a downloadable ZIP you can host anywhere. Your live WordPress site stays completely private and secure behind the scenes; only the static HTML is ever exposed to visitors. Built with shared and budget hosting in mind: a live "Peak Memory" monitor, a one-click "Stop Crawl" safety switch, and sensible defaults mean you're never one crawl away from taking your server down. Automated Maintenance (Smart Refresh) Never worry about stale content. When you publish or update a post, Static Porter quietly regenerates that post, your homepage, and its category and tag archives in the background, without slowing down the editor. Unpublish, trash, or rename a post and its old static file is removed automatically, so visitors never get served a page that no longer exists. Why choose Static Porter? Key Features Static generation & speed

安装:

  1. Upload the static-porter folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Go to the 'Static Porter' menu in your sidebar.
  4. Open the 'Compatibility check' tab to see whether anything on your site needs attention.
  5. Configure your excluded paths and click 'Start full crawl'.
  6. On NGINX, add the server rule shown on the Dashboard (Apache and LiteSpeed work automatically).

屏幕截图:

  • Precise control: Delete or recrawl specific pages without clearing the whole cache.
  • Visualize your efficiency: See exactly how much database load you are bypassing.

升级注意事项:

4.3.0 Adds an optional setting that makes lightbox and gallery image links (Divi lightboxes, for example) work in exports and deployments. Includes the 4.2.2 security fixes. 4.2.2 Security update, recommended for everyone and especially for sites that use Asset Mirroring. Also includes the fix for AWS S3 and CloudFront signature errors from 4.2.1. 4.2.1 Fixes AWS S3 uploads and CloudFront cache invalidation failing with a signature error, including for files with characters like @ or spaces in their names. Recommended for everyone using S3 deployment. 4.2.0 Adds a crawl health report with retries, orphan file cleanup, a compatibility checker, NGINX support, and a smarter Smart Refresh. Error pages are no longer saved as static files. Requires WordPress 5.6 or newer. 4.1.0 Cloudflare and the new AWS S3 + CloudFront deployment are optional and hidden until enabled. Adds Asset Mirroring for fully standalone exports, a Documentation tab, five actions per cached page, and a clearer Download ZIP button. 4.0.0 New: File storage location card shows where your HTML files live on the server with one-click path copy. New: Download ZIP exports your entire static site as a single ZIP file for local browsing or uploading to any host. 3.5.9 Added one-click deployment of your static HTML files to Cloudflare's global edge network, and moved the crawl controls next to the other action buttons. 3.5.8 Dashboard redesign: clearer status header, grouped settings cards, live stats refresh with no page reload, and a search box for cached pages. 3.5.7 Bug fix: the post-crawl countdown could loop forever and repeatedly reload the page. It now reloads exactly once as intended. 3.5.6 Improved dashboard UX with clear Active/Inactive status indicators and removed automatic page reloads for better workflow.

常见问题:

Will Static Porter really make my site faster?

Yes! Traditional WordPress pages require the server to process PHP and query a MySQL database every time a visitor arrives. Static Porter converts these into flat HTML files. Your server can then deliver these files instantly, bypassing the "heavy lifting" entirely. This often results in a nearly instant Time to First Byte (TTFB).

Will my URL structure or permalinks change?

No. This is one of the core strengths of Static Porter. The plugin generates a static mirror of your site that follows your existing WordPress permalink structure perfectly. Your visitors (and search engine bots) will continue to see the same clean URLs they always have, but the pages will simply load much faster.

Do I have to manually recrawl my site every time I write a post?

No. Smart Refresh automatically regenerates the post, your homepage, and its category and tag archives when you publish or update it, and removes the old file if you unpublish, trash, or rename it. A full crawl is only needed after changes it can't see, such as menus, widgets, your theme, or permalinks. The Dashboard shows a banner when that happens.

Can I use this on a low-resource budget server?

Absolutely. Static Porter is designed to be resource-efficient and includes a built-in "Peak Memory" monitor in the dashboard so you can track its impact. If the crawl is too heavy for your server, you can use the "Stop Crawl" safety button at any time to immediately halt the process.

Does this plugin improve my site's security?

Yes. In addition to serving static files (which are inherently more secure than dynamic PHP), Static Porter automatically injects security headers into your .htaccess file. This includes protection against clickjacking (X-Frame-Options) and MIME-type sniffing (X-Content-Type-Options).

Will this help my Google search rankings (SEO)?

Speed is a major ranking factor for Google, especially with Core Web Vitals. By serving ultra-fast static HTML and enabling Gzip compression and browser caching automatically, your site will likely see improved performance scores, which can lead to better visibility in search results.

What happens if I want to remove a single page from the cache?

Unlike simple "purge all" plugins, Static Porter gives you a persistent cache table. You can view a list of every cached URL and use individual "Delete" or "Recrawl" buttons for precise control without affecting the rest of your static site.

Can I choose which parts of my site to make static?

Yes. The dashboard allows you to toggle the crawling of Posts, Pages, Categories, and Tags independently. You can also use the "Excluded Paths" box to prevent specific directories from ever being turned into static files.

How do I know if it's working?

Enable the "HTML Attribution" setting. View your website's source code, and you will see a comment at the top confirming the page is being served as static HTML.

Does this work with WooCommerce?

It is recommended to exclude checkout, cart, and account pages using the "Excluded Paths" setting to ensure dynamic functionality remains intact.

Can I deploy my static site to Cloudflare or AWS?

Yes. Both are optional, hidden-by-default features. Cloudflare deployment pushes your static files to a Cloudflare Worker, serving your site from Cloudflare's global edge network. AWS S3 + CloudFront deployment uploads directly to your own S3 bucket, with automatic CloudFront cache invalidation on every deploy. Enable whichever fits your infrastructure from the dashboard settings.

Do I need my WordPress site to stay online after deploying to Cloudflare or S3?

By default, yes — only your HTML is deployed, so CSS, JavaScript, images, and fonts still load from your live WordPress site. Turn on Asset Mirroring if you want a fully standalone deployment that doesn't depend on WordPress staying online.

Will lightbox and gallery images work in a static export?

Yes, with the "Also mirror links to images" option under Asset Mirroring. Page builders such as Divi open the large photo from an ordinary link around the thumbnail, and by default that link keeps its original address. With the option on, those links point at local copies, so the lightbox works in a ZIP export or a Cloudflare or S3 deployment. Your canonical URLs, social sharing images, and structured data keep their absolute addresses, so SEO metadata is unaffected.

What is Asset Mirroring?

An optional setting that copies your CSS, JavaScript, images, and fonts locally alongside your static HTML, instead of leaving them to load from your live WordPress site. It's useful before deploying to Cloudflare, S3, or exporting a ZIP, since it makes the result fully self-contained. It's off by default because it increases crawl time and disk usage. Only images, fonts, stylesheets, and scripts are copied, each one is checked before it is saved, and external files are fetched only from public addresses.

Do I need a new sitemap.xml after using Static Porter?

No. Static Porter only crawls your posts, pages, categories, tags, and 404 page — it never generates or touches sitemap.xml itself. Since no static copy of your sitemap exists, the .htaccess rule finds nothing to serve for that path and simply passes the request through to WordPress as normal. Your existing sitemap (from Yoast, RankMath, or whichever SEO plugin you use) keeps generating itself dynamically and staying current, completely independent of Static Porter.

Does Asset Mirroring affect my sitemap or its image links?

No. Asset Mirroring only rewrites the src/href references inside your crawled static HTML pages, pointing them at locally mirrored copies of your CSS, JS, and images. It does not modify your sitemap file, and the live image URLs your sitemap already lists continue to work exactly as before on your WordPress server, whether or not mirroring is enabled.

Will using Static Porter affect my SEO rankings?

Static Porter's main SEO benefit is indirect but real: faster page loads improve your Core Web Vitals, which is a direct Google ranking factor, and you get that automatically just from running a crawl — no extra configuration needed. Your URLs, permalinks, and sitemap are unaffected either way. Two things worth checking after your first crawl:

  1. Browse your site logged out (or in an incognito window), since that's exactly what Googlebot sees. Confirm nothing looks broken or missing compared to the logged-in, dynamic version.
  2. Make sure anything duplicate, private, or irrelevant (like WooCommerce cart or checkout pages) is listed in "Excluded Paths," so it's never accidentally served as a static page to search engine crawlers.

Does Static Porter work on NGINX?

Yes, with one extra step. NGINX ignores .htaccess, so Static Porter detects it and shows an equivalent server rule on the Dashboard, generated for your site's real paths, with a copy button. Add it to your NGINX configuration (or send it to your host's support on managed hosting) and static files are served exactly as they are on Apache. Until then your files are still generated, and the status badge says "Generated" rather than claiming the site is being served statically.

What happens if a page fails during a crawl?

Nothing is silently lost. The crawl report lists every failed page with the reason (a timeout, HTTP 500, HTTP 403, and so on) and a Retry button for each, plus Retry all failed. A page that returns an error is never saved as a static file, and if a refresh fails, the previous good copy is kept.

What are orphaned files?

Static files that your site wouldn't produce any more: a page you deleted, unpublished, or renamed, or a path you excluded after it was cached. Static files are served before WordPress runs, so an orphan keeps showing visitors stale content. The Orphan File Cleanup card lists them with the reason, and can remove them automatically after each crawl. Pages that still exist are never deleted this way.

How do I know if my site is compatible?

Open the Compatibility check tab. It tests that your site can crawl itself, checks your permalinks and server type, detects form, shop, and membership plugins, and scans your actual pages for forms and checkout content (including Divi and Elementor forms). It changes nothing unless you click the button to add its suggested exclusions.

更新日志:

4.3.0 4.2.2 4.2.1 4.2.0 4.1.0 4.0.0 3.5.9 3.5.8 3.5.7 3.5.6 3.5.5 3.5.4 3.4.7