I have a simple PHP app with mod_pagespeed in Apache 2.4.
Looking at the PageSpeed module documentation (https://developers.google.com/speed/pagespeed/module/filter-head-add) it says this adds a <head/>
tag to a document if it encounters a body tag.
Problem is, I'm making an AJAX request that returns an HTML table row, that I then append to a table.
The response before mod_pagespeed was:
<tr><td>Data1</td><td>Data2</td></tr>
I could just do a:
$('#myTable > tbody:last-child').append(data);
And it would work fine.
Now the response is:
<head/><tr><td>Data1</td><td>Data2</td></tr>
And it's breaking.
My question is, does this happen all the time? Do I need to remove the add_head directive? Is there another way to let mod_pagespeed know this is an AJAX request?