Skip to content

Caches responses as static files on disk for lightning fast page loads.

License

Notifications You must be signed in to change notification settings

lamalamaNL/page-cache

 
 

Repository files navigation

Laravel Page Cache

Original package at

URL rewriting

This package is designed to work together with the statamoc

  • For nginx:

    Update your location block's try_files directive to include a check in the static-pagecache directory:

    try_files $uri "/static/$host${uri}_${cache_query_string}.html" "/static-pagecache/$host${uri}_${cache_query_string}.html" /index.php?$query_string;
  • Debugging nginx:

    Update your location block's try_files directive to include a check in the page-cache directory:

    # Testing
        #add_header Content-Type text/plain;
        #return 200 "/static-pagecache${uri}_${cache_query_string}.html";
        #return 200 "/static/$host${uri}_${cache_query_string}.html";
        #return 200 "/static-pagecache/$host${uri}_${cache_query_string}.html";

About

Caches responses as static files on disk for lightning fast page loads.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%