Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Best way to implement code changes?
Old 05-10-2008, 02:53 PM Best way to implement code changes?
jamestl2's Avatar
No scale-itch here...

Latest Blog Post:
Wordpress Relative URLs Plugin
Posts: 2,389
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Trades: 0
I'm asking this because when I edit my website's code and styles, I like to test and see the changes I make immediately.

Whenever I make a small edit (like changing a color), my browser doesn't seem to "notice" the changes right away (not until about 15 min. or so have passed, and this applies to both IE and FF, so I didn't think it was a browser related issue).
__________________
Engipress -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
for Wordpress Projects
jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
 
Register now for full access!
Old 05-10-2008, 05:45 PM Re: Best way to implement code changes?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Check the server Content Expiry headers.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-10-2008, 06:35 PM Re: Best way to implement code changes?
jamestl2's Avatar
No scale-itch here...

Latest Blog Post:
Wordpress Relative URLs Plugin
Posts: 2,389
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Trades: 0
Never heard of those before.

Do we check this through the server control panel (cpanel) somewhere? I looked at the installed perl modules, and this is what I found related to HTTP:
Quote:
HTTP:: Daemon::App (0.0.9)HTTP:: Daemon::SSL (1.02)
Honestly though, I have no idea where to look for those...
__________________
Engipress -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
for Wordpress Projects
jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Old 05-10-2008, 07:01 PM Re: Best way to implement code changes?
VirtuosiMedia's Avatar
Web Design Made Simple

Posts: 1,228
Trades: 0
If you turn your browser cache off while making changes, that might make a difference too.
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Old 05-10-2008, 07:24 PM Re: Best way to implement code changes?
jamestl2's Avatar
No scale-itch here...

Latest Blog Post:
Wordpress Relative URLs Plugin
Posts: 2,389
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Trades: 0
I have cleared the cache, cookies, temp int files, all of them to no avail.

What I'm thinking your suggesting here is to go to (with FF):
Tools > Options > Advanced > Network > Cache

Then change the "Use up to" setting to 0 MB. Would I be correct?
__________________
Engipress -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
for Wordpress Projects
jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Old 05-10-2008, 07:25 PM Re: Best way to implement code changes?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.w3.org/Protocols/rfc2616/....html#sec14.21

http://httpd.apache.org/docs/2.0/mod/mod_expires.html
http://www.sitepoint.com/article/eff...acceleration/4

Try using Ctrl+F5 to refresh the page, it will (should) override the Expires header.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-11-2008, 05:48 PM Re: Best way to implement code changes?
jamestl2's Avatar
No scale-itch here...

Latest Blog Post:
Wordpress Relative URLs Plugin
Posts: 2,389
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Try using Ctrl+F5 to refresh the page, it will (should) override the Expires header.
Didn't override for some reason.... (Or it did, but the changes I made to the code weren't affected by it or something, as it still looked like the original styles.)

I think I'm in way over my head with this Expires Header directive. I've checked out those links, but they don't say "where" to modify the time, or what I would need to override it for the time being.

Am I just suppose to insert code like this into the webpage being edited itself?
Code:
<meta http-equiv="Expires" content="(the date I want)" />
__________________
Engipress -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
for Wordpress Projects
jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Old 05-12-2008, 03:29 AM Re: Best way to implement code changes?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Yep, that would work. Set the date and time to be Now()

or in htaccess use;
header set Expires "0"

put it inside a FilesMatch directive to affect only certain extensions.

Bearing in mind it will put the production server load up a bit as every request will serve the files rather than the UA using it's locally cached version.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-15-2008, 11:58 AM Re: Best way to implement code changes?
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
Check to see if your server has a caching proxy installed (like squid).
__________________

Please login or register to view this content. Registration is FREE

willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 05-15-2008, 02:09 PM Re: Best way to implement code changes?
jamestl2's Avatar
No scale-itch here...

Latest Blog Post:
Wordpress Relative URLs Plugin
Posts: 2,389
Name: <member type="brilliant" alt="foolish">James Lewitzke</member>
Location: / public_html / Universe / Virgo_Supercluster / Local_Group / Milky_Way / Orion_Arm / Solar_System / Earth / North_America / USA / Wisconsin
Trades: 0
I contacted my host and it seems like they don't have anything like that installed, they recommended I use a site like this to test out whether my ISP had the proxy cache or not:
http://pagewash.com/
__________________
Engipress -
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
for Wordpress Projects
jamestl2 is offline
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Old 05-23-2008, 11:24 AM Re: Best way to implement code changes?
vn5ltr's Avatar
Skilled Talker

Posts: 93
Location: Melbourne, Australia
Trades: 0
If they are style changes or similar, append a version number to the end of it.
Example,
HTML Code:
 <link rel="stylesheet" href="http://www.website.com/css/stylesheet.css?v=1" type="text/css" media="screen" />
And just increment the number when you have made changes and would like to force a fresh copy.
vn5ltr is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Best way to implement code changes?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.57770 seconds with 12 queries