GithubHelp home page GithubHelp logo

laravel-page-cache's People

Contributors

andypa avatar benabbottnz avatar gregpriday avatar irineujunior avatar josephsilber avatar kodestar avatar mvdnbrk avatar thijsvdanker avatar vkazakevich avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

laravel-page-cache's Issues

CDN Cache Purge

This package should allow site owners to configure CDN cache purging when a page changes. This would allow for very long edge caching times.

This would involve listening for the PageRefreshed event and creating a purge request job when the page is changed.

We should create a CDN Purging contract so we can support multiple CDNs. To start, we'll have support for Cloudflare and possibly Fastly.

HTML Post Processing

We should give a way for users to perform various optimizations on HTML after it's generated.

This would involve listening for the PageRefreshed event and creating a job that runs a post processing stack of commands on the file.

We should still store a raw version of the html with the original filename. This will help all our existing change detection code to run properly. We'll also just store a separate .min.html file and have our Apache and Nginx configurations try for these minified versions first. We'll also need to make sure we delete these minified files when a cached page is refreshed.

Developers should be able to configure which commands they include in a stack, with each ideally being defined as a class so devs can add their own. This should work in a similar way to Laravel's Middleware.

2 post processing commands we could include are:

Configuration check page

The main idea is to replace the two console commands Install Nginx and Install Apache, with one blade page.
Besides hints on what settings should be added to the server configuration, we can also add a "check configuration" button and add some statistics about the cached pages.

This solution could potentially speed up the installation and configuration of this package.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.