• Hi there,

    is there a way to change the default extension for cached files from html to php? I’ve seen that the wpfc_buffer_callback_filter filter requires the $extension parameter, but I cannot return it.

    The reason is that I want to add extra header information via PHP.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Emre Vona

    (@emrevona)

    you cannot do it. why do you need that?

    Thread Starter Michael

    (@michant)

    I would like to parse the buffer for css and js files in order to set them as link header for http2 server push. Are there any plans to implement this in the near future?

    Plugin Author Emre Vona

    (@emrevona)

    do you want to save as a php file because you want to add a dynamic code into the cache file? or do you want to parse and modify the html source and just save?

    Thread Starter Michael

    (@michant)

    I want to add dynamic code and save it as php file. The .htaccess file must be modified as well then, right?

    Plugin Author Emre Vona

    (@emrevona)

    sorry but this is not possible.

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

The topic ‘How to change cache extension?’ is closed to new replies.