L

LastModified

By Kudashev Serge (kudashevs)


MODx Revolution plugin which handle request If-Modified-Since and return Last-Modified header and 304 response code if necessary. The key difference from similar packages is a possibility to update last editing date of parent resource to reacquire its content.Available system settings (namespace lastmodified):

  • response - set value of Cache-control response directive, аvailable values: "private", "public".
  • maxage – set value of Cache-control max-age directive in seconds, default is 3600.
  • expires – set value of Expires header current time offset in seconds, default is 3600.
  • update_parent - updates last editing date of parent resource to reacquire its content. Default false.
  • update_level - set nested level from current resource and up for parent resources dates update. Default 1.
  • update_start - update last editing date for start page too on every resource change. Default false.
  • prevent_authorized - prevent If-Modified-Since handling for authorized users. Default true.
  • prevent_session - prevent If-Modified-Since handling if any of listed values (comma separated) was founded in session variables names. Default minishop2.

Feel free to suggest ideas/improvements/bugs on GitHub:

https://github.com/kudashevs/LastModified/issues

Kudashev Serge


New in LastModified 1.0.9

1.0.9-pl

  • Add contexts support
  • Some improvements

1.0.8-pl

  • Add prevent on session variables names

1.0.7-pl

  • Add prevent handling for authorized users
  • Some improvements

1.0.6-pl

  • Add update start page
  • Some improvements

1.0.5-pl

  • Add update nesting level
1.0.4-pl
  • Parent 0 bugfix
  • Some improvements
1.0.3-pl
  • Add update parent editedon functionality
  • Some phpdoc annotation update
1.0.2-pl
  • Add response directive option
  • Update lexicon files and docs
  • Some improvements
1.0.1-pl
  • Add maxage and expires options
  • Add HTTP protocol version
  • Update lexicon files and docs
1.0.0-pl
  • Initial release

More

Information

Released
March 21, 2019
Supported Versions
2.3 – Current
Downloads
636
License
GPLv2

More from Kudashev Serge

NotFoundParamAlert

NotFoundParamAlert is MODx Revolution Extra which generate alert…

View
ForceTemplate

MODx Revolution plugin which force set of given template for all…

View