Title: AMP Parameter
Last modified: October 13, 2022

---

# AMP Parameter

 *  Resolved [ecronik](https://wordpress.org/support/users/ecronik/)
 * (@ecronik)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/amp-parameter/)
 * Hi Marko,
 * I hope you’re doing well! I have a question regarding the AMP configuration: 
   When using query parameters (e.g. for my setup: [https://domain.com/postname/?amp=1](https://domain.com/postname/?amp=1)),
   I need to use “query string” in the W3TC extension, right? I am a little confused
   about the postfix: Standard is “amp”, do I need to change this to “?amp=1/” ?
   I’m asking since my mobile pagespeed score is worse with the extension enabled.
 * Thanks a bunch and best regards,
    eC
    -  This topic was modified 3 years, 7 months ago by [ecronik](https://wordpress.org/support/users/ecronik/).

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/amp-parameter/#post-16096990)
 * Hello [@ecronik](https://wordpress.org/support/users/ecronik/)
 * Thank you for reaching out and I am happy to assist you with this.
    The W3TC 
   does not cache the query parameters by default. So if you are using Page Cache
   with Disk: Enhanced, the pages with query strings will not be cached. W3 Total
   Cache has the option Cache URIs with query string variables” and it is only available
   with Disk caching methods and memory-based caching like Redis or Memcached. This
   is most likely the reason your page speed decreased. As for the parameter, if
   you are using the query string for your AMP pages, in the W3TC AMP settings you
   should select AMP URL Type: query string and add `?amp` to AMP URL Postfix: field.
 * I hope this helps!
 *  Thread Starter [ecronik](https://wordpress.org/support/users/ecronik/)
 * (@ecronik)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/amp-parameter/#post-16119256)
 * Hello Marko,
 * Unfortunately, I can only do Disk and Disk: Enhanced. What would you recommend–
   to stay on Disk: Enhanced and get by without caching for the AMP pages, or to
   switch to Disk? Would the tradeoff between the two page caching methods be big
   or the advantage for the AMP pages? Pagespeed for them is looking really good
   already. Unfortunately, I can’t use the URL structure without query string for
   AMP, otherwise the layout of the pages will break.
 * Thanks,
    eC
 *  Thread Starter [ecronik](https://wordpress.org/support/users/ecronik/)
 * (@ecronik)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/amp-parameter/#post-16121493)
 * P.S.: And what I’m also wondering is if the Cache Preload mechanism works on 
   just “Disk” as well?
 * Also, if the caching of query string URL’s can/will cause any issues?
 * Thanks for your advice,
    eC
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/amp-parameter/#post-16122785)
 * Hello [@ecronik](https://wordpress.org/support/users/ecronik/)
 * Thank you for your feedback.
    If you check the source code on the AMP page when
   using the Disk: Enhanced you will see the following: `Page Caching using disk:
   enhanced (Requested URI contains query)` Try adding the `amp` string to Performance
   >Page Cache>Advanced>Accepted query strings: save all settings and purge the 
   cache and let me know if this helps!
 * Thanks!
 *  Thread Starter [ecronik](https://wordpress.org/support/users/ecronik/)
 * (@ecronik)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/amp-parameter/#post-16128801)
 * Hello Marko,
 * this seems to be working perfectly.
 * Thank you for your excellent continued support,
    eC
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/amp-parameter/#post-16129394)
 * Hello [@ecronik](https://wordpress.org/support/users/ecronik/)
 * You are most welcome!
 * We would really appreciate it if you could take a minute and post a review [here](https://wordpress.org/support/plugin/w3-total-cache/reviews/).
   This will help us to continue offering a top-notch product to users.
    Thanks!
 *  Thread Starter [ecronik](https://wordpress.org/support/users/ecronik/)
 * (@ecronik)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/amp-parameter/#post-16137071)
 * Hi Marko,
 * of course – just posted.
 * Thanks again and best regards,
    eC

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘AMP Parameter’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [ecronik](https://wordpress.org/support/users/ecronik/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/amp-parameter/#post-16137071)
 * Status: resolved