Expiry content - HxGN EAM - 12.0 - Customization & Programming - Hexagon

HxGN EAM Architecture and Server Management

Language
English
Product
HxGN EAM
Search by Category
Customization & Programming
HxGN EAM Version
12

In web application there are 2 types of files are downloaded every call – static and dynamic. Static files are typically the images, style sheets and html. These files can be cached on client pc and thus not downloaded every time saving download time.

How to increase the timeout for Expiry content?

Search for the file httpd.conf in the /Apache/conf folder and change the parameter <IfModule mod_expires.c>

<IfModule mod_expires.c>

ExpiresActive on

#ExpiresByType image/jpg "access 1 month"

#ExpiresByType image/gif "access 1 month"

#ExpiresByType image/bmp "access 1 month"

#ExpiresByType image/png "access 1 month"

#ExpiresByType application/x-shockwave-flash "access 1 month"

#ExpiresByType text/html "access 1 day"

ExpiresDefault "access plus 30 minutes"

</IfModule>

What is the optimal value for this parameter?

The suggested value for this parameter is 24 hours, which means that static files are downloaded only once each day.