Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 91... Línea 91...
91
     * A helper function to get a list of seb config file headers.
91
     * A helper function to get a list of seb config file headers.
92
     *
92
     *
93
     * @param int|null $expiretime  Unix timestamp
93
     * @param int|null $expiretime  Unix timestamp
94
     * @return array
94
     * @return array
95
     */
95
     */
96
    public static function get_seb_file_headers(int $expiretime = null): array {
96
    public static function get_seb_file_headers(?int $expiretime = null): array {
97
        if (is_null($expiretime)) {
97
        if (is_null($expiretime)) {
98
            $expiretime = time();
98
            $expiretime = time();
99
        }
99
        }
100
        $headers = [];
100
        $headers = [];
101
        $headers[] = 'Cache-Control: private, max-age=1, no-transform';
101
        $headers[] = 'Cache-Control: private, max-age=1, no-transform';