Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Local static content not reloaded after modification #229

Closed
davidw opened this Issue · 5 comments

3 participants

@davidw
Owner

This is a bit vague because I have not tracked it down yet, but we're seeing javascript and css files that are not getting reloaded even after they are modified, while testing on localhost:8001.

@davidw
Owner

It's hitting mochiweb_response_bridge:build_response which sets the Expires header to 10 years in the future.

I don't really get why it's doing that.

@davidw
Owner

Setting Cache-Control: no-cache "fixes" the problem. Perhaps that should be enabled in development mode? To test, I just dumped it into the mochiweb_response_bridge code to see if it would work, but I'm not quite sure how to properly set it in boss_web_controller - this does not seem to be functioning:

[$/|File] = lists:nthtail(length(StaticPrefix), Url),
Response2 = (Response:file([$/|File])):build_response(),
Response3 = Response2:header("Cache-Control", "no-cache"),
Response3:build_response()
@evanmiller
Owner
@davidw davidw referenced this issue in nitrogen/simple_bridge
Closed

build_response forces Expires header? #20

@davidw
Owner

nitrogen/simple_bridge#20 - we'll see if they have anything to say about the Expires header.

@zkessin
Owner

It is not giving an expires header in development mode

@zkessin zkessin closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.