Menu

Serving Dynamic WooCommerce Price List PDFs Without Breaking SEO or Hitting PHP Memory Limits
📰

Serving Dynamic WooCommerce Price List PDFs Without Breaking SEO or Hitting PHP Memory Limits

DEV Community: php·3K Home Warehouse·6 days ago
#D1zASrEZ
#devto#dev#noindex#html#canonical
Long article (1094 words) — no AI summary yet.
Reading 0:00
15s threshold

When you run a WooCommerce store with hundreds or thousands of SKUs (flooring, wall panels, hardware, or B2B supplies), HTML price list pages are great for search traffic, while contractors and buyers still ask for a downloadable PDF to forward to clients.

Our first naive instinct was to generate static .pdf files under /wp-content/uploads/ and link directly to them. Within weeks, three practical issues showed up:

Stale prices behind aggressive caching. Static .pdf assets matched nginx expires max rules and proxy caches, so buyers kept downloading last month's prices after a catalog update.

Duplicate content signals for search engines. Search bots started crawling both the HTML price page and the PDF version. Adding X-Robots-Tag: noindex alongside a canonical header caused mixed signals.

Random HTTP 500 errors during live timestamp stamping. We wanted every downloaded PDF to show the exact download timestamp and a short validity note on page 1.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.