在我的ajax響應中,緩存控制標題顯示在標記中。Symfony Ajax Response顯示緩存標題
HTTP/1.0 200 OK緩存控制:無緩存日期:星期四,2012年10月11日 九時00分59秒GMT
我期望的報頭是在報頭,而不是在標記。
這裏是我的控制器操作摘錄:
...
$template = $this->render('list.html.twig', array(
'data' => $data
));
return new Response($template);
...
這是爲什麼,我怎麼能做出這樣消失了?
請添加更多代碼示例 - 您如何處理客戶端中的數據等。 –
通過jquery獲取視圖:result_div.load(route); – ivoba