Giter Site home page Giter Site logo

flowpack.fullpagecache's People

Contributors

kitsunet avatar mficzel avatar paavo avatar sebobo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flowpack.fullpagecache's Issues

Add setting option to "bypass" query string parameters

Skipping the fullpage cache for requests that include a query string by default, is probably a good decision.
However, adding this feature would enable cached documents even for query string parameters that typically won't change the cached HTML response.

Example configuration in a Neos project would look like...

Flowpack:
  FullPageCache:
    bypassQueryStringParameters:
      - utm_source
      - utm_medium

I would give it a try and submit a PR, if there are no objections.

Make it possible (easier?) to disable full page cache for custom controllers

I don't see any obvious way of disabling the full page cache from a custom controller action that is called via GET without cookies or query parameters.

Unsetting a header on the response seems to be impossible (even with replaceHttpResponse) since it's merged.

The full page cache should consider a cache header from the action response like Cache-Control: no-cache. This would still result in misses for all requests. Better yet would be some kind of exclusion before the middleware e.g. by adding URI path exclusions via settings.

Flowpack_FullPageCache_Entries get removed on changes in User workspace

This means that the cache entries have to be rebuild, although Live has not changed.
I would expect that the affected entries in Flowpack_FullPageCache_Entries only get removed on publishing to Live workspace.

Is this a bug or are there any technical reasons for that?

Tested with Neos 4.3.12

Allow for the exclusion of cookies and by prefix to allow for dynamic ranges

In many cases specifically related to affiliate links there are dynamic cookies and dynamic query parameters generated in order to support this case I would recommend that it is possible to exclude entire ranges of parameters based on prefix, such as the following range of cookies where <wpid> is set from the partner domain _ga_<wpid>

My suggestion would be to configure prefixes as follows:

Flowpack:
  FullPageCache:
    request:
      cookieParams:
        ignorePrefix:
          - _ga_
      queryParams:
        ignorePrefix:
          - utm_

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.