• Resolved santon

    (@santon)


    I added “.h” (without quotes) to the list, because it corrupted my .h files (added “<!– Dynamic Page Served (once…” to the end of file).

    And now ALL files which contain “h” letter are not cached ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter santon

    (@santon)

    I want to say “all files which PERMALINK contains letter h”

    Thread Starter santon

    (@santon)

    More precise: it adds
    <!-- Page not cached by WP Super Cache. No closing HTML tag. Check your theme. -->
    To the end of every file like myPaper.pdf, myProgram.cpp and others which people can download from my site. I added

    .h
    .zip
    .pdf

    to the list of forbidden URIs for caching, but now all pages which contain letter ‘h’ in their name are not cached too ??

    Thread Starter santon

    (@santon)

    I have solved the problem: these strings are regular expressions. So, the dot symbol matches any char!

    So, the default values (like “wp-.*.php”) are incorrect: it should be “wp-.*\.php”. This was the first bug in WP-Super-Cache.

    The second bug was in the source code that prevented from entering backslashes in the list.

    Thread Starter santon

    (@santon)

    The correct rejected URIs are:

    wp-.*\.php
    \.(?!php)

    The correct allowed URIs are:

    wp-comments-popup\.php
    wp-links-opml\.php
    wp-locations\.php

    Thanks this whas very helpfull.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WP Super Cache] Accepted Filenames & Rejected URIs’ is closed to new replies.