# How to define HTTP header for cached pages in public dir

**URL:** <https://www.ruby-forum.com/t/how-to-define-http-header-for-cached-pages-in-public-dir/132014>\
**Category:** Rails\
**Created:** [March 15, 2008, 10:24am UTC](https://www.ruby-forum.com/t/how-to-define-http-header-for-cached-pages-in-public-dir/132014 "2008-03-15T10:24:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Artem\_V](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3be4f8/32.png) [@Artem\_V](https://www.ruby-forum.com/u/Artem_V)\
**Post date:** [March 15, 2008, 10:24am UTC](https://www.ruby-forum.com/t/how-to-define-http-header-for-cached-pages-in-public-dir/132014/1 "2008-03-15T10:24:57Z")

</div>

I want it to be  
Content-Type: text/html; charset=utf8

now it is just

Content-Type: text/html;

I know, that it is possible to make Apache (lighttpd,…) responsible  
for files in public dir.  
But sometimes in different development environments i don’t want to  
define special assets-host and configure Apache.

So is it possible to define HHTP HEADER rules for files in public dir in  
rails ?

I use Rails 2.0.1, mongrel.
