MODx Revolution plugin which returns Last-Modifie and 304 response code if necessary.
Version 1.1.1-pl
Release date 12.29.2022
Downloads 432
Views 1 612
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:

1.1.1-pl - 2022-12-29

  • Remove some redundant empty value checks
  • Update README file
  • Some improvements

1.1.0-pl - 2021-12-14

  • Add exclude by id setting
  • Refactor plugin code and logic
  • Update README information and settings
  • Update code style
  • Some improvements


  • Add clear cache for all updated documents on OnDocFormSave
  • Massive refactoring
  • Update .gitignore


  • Add contexts support
  • Some improvements


  • Add prevent on session variables names


  • Prevent handling for authorized users
  • Some improvements


  • Add update start page
  • Some improvements


  • Add update nesting level


  • Parent 0 bugfix
  • Some improvements


  • Add update parent editedon functionality
  • Some phpdoc annotation update


  • Add response directive option
  • Update lexicon files and docs
  • Some improvements


  • Add maxage and expires options
  • Add HTTP protocol version
  • Update lexicon files and docs


  • Initial release