• Resolved Saridon

    (@pixritwick715)


    I want to disable caching/minification for a specific url pattern (which outputs a PDF file only to the logged in users).

    The sample url: https://mywebsite.com/pxpdflip_stream/204, (where 204 will vary)

    The url redirection is defined in the htaccess as:

    RewriteRule ^pxpdflip_stream/([^/]+)[/]?$ /wp-content/themes/mytheme/lib/FlipBook/1.0/lib/streamfile.php?ao=$1 [QSA,L]

    So far, I have added an entry like this in the ‘Never minify the following pages’ section of ‘Performance > Minify > Advanced’ :

    /pxpdflip_stream/.*

    But it is not working. The page outputs a 500 error. Once the plugin is disabled, it works fine Can you please help?

    PS: I want to exclude these pages from all types of caching.

    • This topic was modified 3 months, 2 weeks ago by Saridon. Reason: add info
    • This topic was modified 3 months, 2 weeks ago by Saridon.
    • This topic was modified 3 months, 2 weeks ago by Saridon.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pixritwick715

    Thank you for reaching out and I am happy to help!
    I both Performance>Page Cache and Performance>Minify, there is an option to disable the Cache/minify for logged in users. Once those options are enabled, and if the file is only for the logged in users, those pages should not be minified or cached.

    Can you please check the source of the page and see if the minify and Page Cache are active on this page and please sahre the website URL so I can check this for you.

    Thanks!

    Thread Starter Saridon

    (@pixritwick715)

    Thank you Marco for your response.

    But is there any way to just ignore the minification for this page pattern only irrespective of the log in status?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pixritwick715

    Thank you for your feedback.
    If I understand correctly, you wish to exlude only this page pattern for only logged in users?
    If that is the question, then no, there is no otpion to do this. You can either completly exlcude the page from Minify by adding it to Performance>Minify>Never Cache following Pages, or simply disabling minify for logged in users.
    I hope this helps!
    Thanks!

    Thread Starter Saridon

    (@pixritwick715)

    Hello @vmarko

    Thank you for your help. Actually I want to keep the minification/caching on for both logged in and non-logged users. Only a single page/url pattern will be excluded in both the cases.

    After the discussion, I think my simplified query is:

    How to exclude an url pattern like https://mywebsite.com/pxpdflip_stream/<some_digit&gt; in ‘Never minify the following pages’ section of ‘Performance > Minify > Advanced’

    I tried using

    /pxpdflip_stream/.*

    (in Performance > Minify > Advanced), but it is not working. I think setting up a proper regex is sufficient, but not sure how.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pixritwick715

    Have you tried only adding /pxpdflip_stream/

    Thanks!

    Thread Starter Saridon

    (@pixritwick715)

    Hi @vmarko

    Nope… it does not work.

    But the problem seems to be elsewhere. I tried to disable all the settings from “General Settings’ (except the Opcode cache (‘enabled’ checked as readonly)) but the problem still persists. The /pxpdflip_stream/ throws a 500 error.

    Its works fine when the plugin is disabled.

    Again… sorry for taking your time and thank you for the suggestions.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pixritwick715

    Thank you for your feedback.
    As I am unable to check this, please reach out to us directly via the support channel in Performance>Support and share your website URL

    Thanks!

    Thread Starter Saridon

    (@pixritwick715)

    Thank you.

    The url is: https://sangraha.co.in

    Currently, the plugin is disabled.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pixritwick715

    I am not sure I quite udnerstand. Can you confirm taht you are saying that once you add /pxpdflip_stream/ to exclusion, that page is throwing 500 error?

    Thanks!

    Thread Starter Saridon

    (@pixritwick715)

    Whenever I enable the plugin the 500 error occurs on the /pxpdflip_stream/ page.

    I tried with disabling the ‘General Settings’ (Page cache, Minify, Browser Cache) the 500 error persists. (However I could not disable the opcode cache).

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @pixritwick715

    Thank you for your feedback. This page is 404 when I tried to visit the page

    Can you please enable the pluin so I can check the page and pease share the full URL

    Thanks!

    Thread Starter Saridon

    (@pixritwick715)

    Hello @vmarko ,

    Thank you for your feedback.

    The url cannot be accessed directly. You need to register and log in (simple 1 step process without any verification) and open up a book (ex. https://sangraha.co.in/publications/the-poets-philosophy-of-life/). You can see a green ‘VIEW’ button in this page, which when clicked opens the page inside an iframe.

    I have enabled the plugin now, and the problem has reappeared. All the settings under the ‘General Settings’ are disabled (except the OpCode cache where the checkbox is readonly).

    Since the site is in production, I would make a humble request to take a look at your earliest convenience.

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.