• Resolved wilmers

    (@wilmers)


    Hello,

    We’re using the plugin user access manager on a website to hide certain pdf files from not logged in users.

    However when I visit a hidden pdf file when logged in it becomes also visible for not logged in users (different browser).

    After deleting autoptimize’s cache it’s hidden again.

    I’ve already tried the solution offered on the URL below by changing ‘test’ to ‘pdf’, but unfortunately that doesn’t work.
    https://quvor.com/exclude-posts-pages-autoptimize/

    Is there a way to exclude pdf files from autoptimize?

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    AO doesn’t cache PDF’s (or HTML), just optimized JS & CSS. but when clearing AO’s cache AO will try to also purge your page cache, so the problem is _very likely_ your page cache, which you’ll indeed have to tweak (but I suppose not by excluding PDF’s, but by excluding the pages from/ in which the PDF’s are shown).

    hope this helps,
    frank

    Thread Starter wilmers

    (@wilmers)

    Thank you for the quick reply.

    That is what I thought as well, but it happens when I directly go to the .pdf file in the browser. I’m gonna try to exclude the complete User Access Manager plugin from autoptimize.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ok, feel free to keep me updated ??

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    will mark as resolved as not in AO’s scope, but feel free to update with your findings @wilmers ! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Exclude pdf files’ is closed to new replies.