Page MenuHomeIn-Portal Phabricator

INP-1703 - Set default expiration for font assets
ClosedPublic

Authored by alex on May 11 2017, 6:11 AM.

Details

Test Plan
  • on VM:
    1. open Apache configuration file (e.g. /etc/httpd/conf/httpd.conf) for editing
    2. if not there already add these settings to it and save changes:
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-opentype .otf
AddType image/svg+xml .svg
AddType application/x-font-ttf .ttf
AddType application/font-woff .woff
    1. restart Apache by typing service httpd restart
  • online:
    1. find sample font files with .eot, .otf, .svg, .ttf and .woff file extensions
    2. download them in /themes/advanced folder
  • on VM:
    1. for each font file type curl -I http://www.website.tld/path/to/in-portal/themes/advanced/font_file_here command (replace url with yours)
    2. confirm, that Expires: ... text is present in command output

Diff Detail

Repository
rINP In-Portal
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

alex updated this revision to Diff 743.May 11 2017, 6:11 AM
alex retitled this revision from to INP-1703 - Set default expiration for font assets.
alex updated this object.
alex edited the test plan for this revision. (Show Details)
alex added 1 JIRA issue(s): INP-1703.
erik accepted this revision.May 16 2017, 5:43 AM
erik edited edge metadata.
This revision is now accepted and ready to land.May 16 2017, 5:43 AM
This revision was automatically updated to reflect the committed changes.