YSlow: Make AJAX cacheable


PageSpeed (Legacy)
YSlow (Legacy)


By allow AJAX requests to be cacheable, it can prevent unnecessary delays.

How does your site score on this recommendation?

Details from Yahoo!

One of AJAX's benefits is it provides instantaneous feedback to the user because it requests information asynchronously from the backend web server. However, using AJAX does not guarantee the user will not wait for the asynchronous JavaScript and XML responses to return.

Optimizing AJAX responses is important to improve performance, and making the responses cacheable is the best way to optimize them.



YSlow recommends:

To improve performance, it's important to optimize these AJAX responses. The most important way to improve the performance of AJAX is to make the responses cacheable, as discussed in Add an Expires or a Cache-Control Header.

Even though your AJAX responses are created dynamically, and might only be applicable to a single user, they can still be cached. Doing so will make your Web 2.0 apps faster.

Read More

Cookie Policy

By clicking "Allow All" you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View cookie details

Deny Allow All