Making WordPress.org

Changeset 7046


Ignore:
Timestamp:
04/06/2018 03:09:44 AM (8 years ago)
Author:
dd32
Message:

Plugin Directory: GeoPattern icons: Send caching headers with the SVGs.

See #3265.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php

    r7045 r7046  
    12281228                status_header( 200 );
    12291229                header( 'Content-Type: image/svg+xml' );
     1230                header( 'Cache-Control: public, max-age=' . YEAR_IN_SECONDS );
     1231                header( 'Expires: ' . gmdate( 'D, d M Y H:i:s \G\M\T', time() + YEAR_IN_SECONDS ) );
     1232
    12301233                echo $icon->toSVG();
    12311234                die();
Note: See TracChangeset for help on using the changeset viewer.