Make AJAX cacheable

Updated on Mar 13, 2019

Method Type: User (.JS)
(This means that the method is handled by the user)

Status: Must be applied by the user.

Introduction:

AJAX (in programming) is a group of technologies used for creating asynchronous applications also referred to as AJAX (JavaScript).

How AJAX works:

AJAX sends data to the server in the background (without changing the currently displayed page.) This way, full page reloading is not needed when data is exchanged between the web server and web browser. Drop-down menus are an example of asynchronous data exchange as they do not cause the page to reload or change its behavior. Making use of the Cache Control and Future Expires headers will make sure that the request will be cached just like normal HTTP requests are.

The caching of AJAX provides the following Advantages:

  • Faster response when accessing AJAX Menus or executing other AJAX related content.
On this page...

    Optimized SSD Web Hosting

    • Free Domain Transfer
    • Google PageSpeed Enabled
    • 24/7 Technical Support
    • Fast SSD Storage
    • Hack-free Protection
    • Free Cloudflare CDN
    • Immediate Activation
    View More