LastModified

MODx Revolution plugin which returns Last-Modifie and 304 response code if necessary.
Version 1.0.9-pl
Release date 03.21.2019
Downloads 150
Views 189
Warning! This component requires PHP version 5.6 or higher! If your site uses PHP less than required, the installation of this package could break it.
Warning! This package requires MODX not less than 2.3 !
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: github.com/kudashevs/LastModified/issues

1.0.9-pl

  • Add contexts support
  • Some improvements

1.0.8-pl

  • Add prevent on session variables names

1.0.7-pl

  • 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