php - How to speed up AJAX? -
i have custom ajax survey script. want improve efficiency of how handles information speed users. css needed style subsequent ajax view located in website's main css shares many similar selectors, , cached on load using..
<filesmatch "(?i)^.*\.(ico|flv|jpg|jpeg|png|gif|js|css)$"> header set last-modified "tue, 31 aug 2010 00:00:00 gmt" header set expires "thu, 15 apr 2014 20:00:00 gmt" header set cache-control "public, no-transform" </filesmatch>
will ajax use cached information reduce round trip request time?
html markup each subsequent ajax view different understand info have fetched, parsed, , returned. if setting caching headers can't job, seems client side scripting directed check cache information first, if needs more information go server (such html markup.)
any appreciated. hope can set me on right path here.
those directives won't affect php script being requested via ajax. 1 thing should cache output of script being requested. method:
http://www.addedbytes.com/for-beginners/output-caching-for-beginners/
Comments
Post a Comment