I have a module that prints some html stuff, that is loaded into a div via ajax/jquery. I would like to cache this jquery-loaded html, but Boost doesn't...
So e.g., I have a page: /shop#!stuff that loads the inner content of /shop/stuff into a div via ajax. But boost is not caching /shop/stuff until I'm opening the url (/shop/stuff) directly in the browser.
Am I doing something wrong? How could I debug this?

Comments

Anonymous’s picture

If you switch to the development version of boost and then apply the patch here #1219484-23: Types application/xml and application/json not supported (support for services module) then that may work.

Various modules send out differing headers for javascript and so the patch for dev has been constructed to add more headers to try and catch the javascript. You will need to patch, install, tell boost you wish to cache the additional javascript pages, regenerate you .htaccess code and replace it.

derMatze’s picture

Unfortunately that isn't working.
The header of the loaded content is "text/html", so I'm really loading "pure" html, thats comes from a function within a module that prints (not returns) the content.

Anonymous’s picture

What is the name of the page called ? .php or .js extension ?

derMatze’s picture

There is no ending at the moment, just http://page.com/stuff/something

Anonymous’s picture

Then that should be a php page that is being cached. From what you have written then that page is going through drupal's url rewrites which boost should be in front of, even for an ajax call and since it is outputting normal html it should be cached just like a normal page (anonymous users only though).