Forums

[Plugin: W3 Total Cache] Feature request - Disk Enhanced (2 posts)

  1. onelife1985
    Member
    Posted 9 months ago #

    It would be great if W3TC could create a different version of disk enhanced files for ajax requests. On the server where is original cache html file is stored a new folder could be added (maybe named ajax?) which will include the html file of a particular ajax request. So whenever W3TC will detect something like:

    if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
    ....
    }

    create the ajax version of this particular page.

    Why would this be useful? On my page I have 2 versions of each post, a regular post and the same post on ajax which requests less data. On the ajax request the header and the footer are excluded so less data is being requested.

    Thanks for your efforts and the marvelous plugin!!

  2. Frederick Townes
    Member
    Posted 8 months ago #

    AJAX requests aren't cached, I'm not sure that AJAX implementation in this case is ideal considering SEO complications that exist with the approach described.

Reply

You must log in to post.

About this Topic