• MODX.com

    3,612 downloads

  • modstore.pro

    6 downloads

LastModified

LastModified is an extra by kudashevs, first released on 2022-12-29.

Package Description

A MODx Revolution plugin which handles the If-Modified-Since request header and returns the Last-Modified response header with the 304 response code when it is necessary. The key difference from similar packages is the possibility to update last editing date of parent resources to show that they have been updated too. The same could be done for the start page. Available system settings (namespace lastmodified):

  • response - specifies a value of the Cache-control response directive, available options: "private", "public".
  • maxage – specifies a value of the Cache-control max-age directive in seconds, default is 3600.
  • expires – specifies a value of the Expires header as an offset from the current time in seconds, default is 3600.
  • update_parent - updates the last editing date of the parent resource to show that it has been updated too. Default false.
  • update_level - sets a nested level from the current resource and up to update the last editing date. Default 1.
  • update_start - updates the last editing date of the start page on a resource change. Default false.
  • prevent_authorized - prevents If-Modified-Since header handling for authorized users. Default true.
  • prevent_session - prevents If-Modified-Since header handling when any of the values (comma-separated list) occur in session names. Default minishop2.
  • exclude - prevents If-Modified-Since header handling for any of listed document ids (comma-separated list). Empty by default.

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

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

Usage/Installation Instructions

To set up this plugin please go to the System settings after an installation and pick lastmodified namespace.

Details

Developer(s)
kudashevs
Released
2022-12-29
First seen
2022-12-29
License
MIT
Supported databases
MySQL
Minimum MODX Requirement
2

LastModified Releases

Vendor Signature Released on
MODX.com 1.1.1-pl 2022-12-29 (1 month ago)
MODX.com 1.1.0-pl 2021-12-13 (1 year ago)
MODX.com 1.0.10-pl 2020-10-30 (2 years ago)
MODX.com 1.0.9-pl 2019-03-21 (3 years ago)
MODX.com 1.0.8-pl 2019-03-12 (3 years ago)
MODX.com 1.0.6-pl 2018-09-12 (4 years ago)
MODX.com 1.0.5-pl 2018-08-14 (4 years ago)
MODX.com 1.0.0-beta1 2016-11-02 (6 years ago)